J
John-Mason P. Shackelford
In ruby is it possible to have a private innner class? Using private
method doesn't appear to work.
class A
private
class B
def hw
'hello_world'
end
end
end
A::B.new.hw # => 'hello world'
John-Mason Shackelford
Software Developer
Pearson Educational Measurement
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
(e-mail address removed)
http://pearsonedmeasurement.com
method doesn't appear to work.
class A
private
class B
def hw
'hello_world'
end
end
end
A::B.new.hw # => 'hello world'
John-Mason Shackelford
Software Developer
Pearson Educational Measurement
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
(e-mail address removed)
http://pearsonedmeasurement.com