D
David Garamond
Remembering that all classes are instances of the Class class, is this
possible? I want to create some class named, say C1, which is empty (or
perhaps with one or two class instance vars) by loading a YAML document.
I can't seem to create instances of Class class in YAML, while I can
easily do this in irb:
$ irb
irb(main):001:0> C1=Class.new
=> C1
irb(main):002:0> C1.new
=> #<C1:0x40174a1c>
possible? I want to create some class named, say C1, which is empty (or
perhaps with one or two class instance vars) by loading a YAML document.
I can't seem to create instances of Class class in YAML, while I can
easily do this in irb:
$ irb
irb(main):001:0> C1=Class.new
=> C1
irb(main):002:0> C1.new
=> #<C1:0x40174a1c>