Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'stringio'
- module Datuh
- def const_missing x
- return super unless x == :DATUH
- StringIO.new(
- File.read(caller.first.split(':').first).split(/__END__[\s]/).last
- )
- end
- end
- Object.extend Datuh
- puts DATUH.read
- __END__
- adlfkjhasdlkfjh
Add Comment
Please, Sign In to add comment