fork download
  1. class Print
  2. def method_missing(sym, *args, &block)
  3. print "#{sym} "
  4. end
  5.  
  6. def self.const_missing(name)
  7. print "#{name} "
  8. end
  9. end
  10.  
  11. def Print(&block)
  12. Print.new.instance_eval(&block)
  13. end
  14.  
  15. Print() do
  16. Hello world!
  17. end
Success #stdin #stdout 0.01s 7456KB
stdin
Standard input is empty
stdout
world! Hello