R
Ralph Shnelvar
[Note: parts of this message were removed to make it a legal post.]
1) Is there an active OCRA chat list?
2) When I use OCRA to create an executable, the executable crashes before the first puts is executed.
I _tentatively_ have isolated the problem to subclassing String. ...
- - - -
class PathnameString < String
def initialize(arg)
super arg
end
def is_root_directory?
!((self.convert_forward_slash_to_back_slash.strip =~ /^[A-Za-z]:\\$/).nil?)
end
def convert_forward_slash_to_back_slash
self.class.new(self.gsub(/\//, "\\"))
end
...
end
- - - -
Assuming that it is this subclassing that is causing OCRA difficulties, do any of the gurus here know what I might have to do get OCRA to understand the subclassing?
In the alternate ... I will have to change this from an ISA method to a HASA method with a ton of delegates. Is there a good Ruby way to do that?
Does using a ghost method sound like a good idea here?
1) Is there an active OCRA chat list?
2) When I use OCRA to create an executable, the executable crashes before the first puts is executed.
I _tentatively_ have isolated the problem to subclassing String. ...
- - - -
class PathnameString < String
def initialize(arg)
super arg
end
def is_root_directory?
!((self.convert_forward_slash_to_back_slash.strip =~ /^[A-Za-z]:\\$/).nil?)
end
def convert_forward_slash_to_back_slash
self.class.new(self.gsub(/\//, "\\"))
end
...
end
- - - -
Assuming that it is this subclassing that is causing OCRA difficulties, do any of the gurus here know what I might have to do get OCRA to understand the subclassing?
In the alternate ... I will have to change this from an ISA method to a HASA method with a ton of delegates. Is there a good Ruby way to do that?
Does using a ghost method sound like a good idea here?