question on 'create_table' with limit option

15 views
Skip to first unread message

Jin Xie

unread,
Oct 16, 2014, 7:49:27 AM10/16/14
to rubyonra...@googlegroups.com

limit is default to `nil` which mean it is optional argument, and few lines down `version_options` only adds limit when the limit is passed from the argument.


Am wondering had I missing something ?

Colin Law

unread,
Oct 16, 2014, 9:11:27 AM10/16/14
to rubyonra...@googlegroups.com
If fetch does not find the key then it runs the block.
http://ruby-doc.org/core-2.1.3/Hash.html#method-i-fetch

Colin
Reply all
Reply to author
Forward
0 new messages