Guest User

Untitled

a guest
May 21st, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. require 'stringio'
  2.  
  3. module Datuh
  4. def const_missing x
  5. return super unless x == :DATUH
  6. StringIO.new(
  7. File.read(caller.first.split(':').first).split(/__END__[\s]/).last
  8. )
  9. end
  10. end
  11.  
  12. Object.extend Datuh
  13.  
  14. puts DATUH.read
  15.  
  16. __END__
  17.  
  18. adlfkjhasdlkfjh
Add Comment
Please, Sign In to add comment