Skip to content

Instantly share code, notes, and snippets.

@allthetime
Created September 3, 2014 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allthetime/83f0a2979022208d9fbf to your computer and use it in GitHub Desktop.
Save allthetime/83f0a2979022208d9fbf to your computer and use it in GitHub Desktop.
PRY history
def big(arr)
re = arr.collect{|x| x*100}
puts re
end
big([1,2,3,4])
f = Proc.new
f = Proc.new{|x| x+100}
f
def what(x)
f(x)
end
what(1)
what
what.inspect
big([1,2,3,4]).inspect
big([1,2,3,4])
big([1,2,3,4]).inspect
sort.inspect
main.inspect
f = { g : "f" }
f
f = { :g : "f" }
f = { :g => "f" }
f
f.inspect
f = {"g":"f"}
f = { g : 10 }
quit
history
quit
history
Math.sqrt(123)
f
f = [1,9,4,1,4]
f.sort!
f.collect!{|x| x * 100|
f.collect!{|x| x * 100}
history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment