From: Ralph Shnelvar Date: 2010-08-22T14:39:22+09:00 Subject: Ocra chat list?; Ocra crashes; Subclassing String ------------C417B2F70426A2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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? ------------C417B2F70426A2--