-
-
Save ainoya/4231131 to your computer and use it in GitHub Desktop.
pryで返り値のダンプを抑制する ref: http://qiita.com/items/0aea440faa5d78630c9a
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
[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