[ruby-cvs:69906] mrkn:r62757 (trunk): Add `exception:` keyword in Kernel#Integer()

mrkn at ruby-lang.org mrkn at ruby-lang.org
Thu Mar 15 16:19:43 JST 2018


mrkn	2018-03-15 16:19:43 +0900 (Thu, 15 Mar 2018)

  New Revision: 62757

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62757

  Log:
    Add `exception:` keyword in Kernel#Integer()
    
    Support `exception:` keyword argument in Kernel#Integer().
    If `exception:` is `false`, `Kernel#Integer()` returns `nil` if the given
    value cannot be interpreted as an integer value.
    The default value of `exception:` is `true`.
    This is part of [Feature #12732].

  Modified files:
    trunk/bignum.c
    trunk/internal.h
    trunk/object.c
    trunk/test/ruby/test_integer.rb


More information about the ruby-cvs mailing list