Created
October 12, 2012 02:30
-
-
Save ShadowBelmolve/3877001 to your computer and use it in GitHub Desktop.
Inspect source of files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_LINES__ = {} | |
require './test' | |
puts SCRIPT_LINES__.keys | |
# [".../test.rb"] | |
puts SCRIPT_LINES__.first[1].join | |
# def foo | |
# puts "bar" | |
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def foo | |
puts "bar" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment