Created
September 17, 2016 21:05
-
-
Save elucid/50bd0ee520342c5e569a2a5ab4b0cd4a to your computer and use it in GitHub Desktop.
save useful stuff from IRB sessions
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 save_irb(filename) | |
File.open(filename,'w') {|f| f.puts Readline::HISTORY.entries[0..-2]} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment