I'm looking at converting some code over from BlankSlate to BasicObject,
but hit a roadblock: I can't figure out any way to do the equivalent of
class Foo < BlankSlate
def initialize
@secret = 99
end
end
foo = Foo.new
foo.instance_eval {@secret}
Any suggestions?
- Sam Ruby