fork download
  1. matz = Object.new
  2. def matz.speak
  3. "Place your burdens on the machine's shoulders."
  4. end
  5.  
  6. puts matz.speak
  7. puts matz.class # => Object
  8.  
  9. metaclass = class << matz
  10. "abc"
  11. end
  12.  
  13. puts metaclass.class
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
Place your burdens on the machine's shoulders.
Object
String