Skip to content

Instantly share code, notes, and snippets.

@ainoya
Created December 7, 2012 06:08
Show Gist options
  • Save ainoya/4231131 to your computer and use it in GitHub Desktop.
Save ainoya/4231131 to your computer and use it in GitHub Desktop.
pryで返り値のダンプを抑制する ref: http://qiita.com/items/0aea440faa5d78630c9a
[73] pry(main)> (1..100).step(1).to_a.each{|n| warn n if n==100}
100
=> [1,
2,
3,
4,
5,
: #ダンプ出力があふれてpagerが立ち上がる
---------------------
[74] pry(main)> (1..100).step(1).to_a.each{|n| warn n if n==100};
100
#セミコロンをつけるとダンプ出力がなくなる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment