Sha256: 966290024693faa01ecf13ed75d8829a995b46550aef4b4952b8fdefe994e9fb
Contents?: true
Size: 769 Bytes
Versions: 53
Compression:
Stored size: 769 Bytes
Contents
class Integer Backports.make_block_optional self, :downto, :times, :upto, :test_on => 42, :arg => 42 # Standard in ruby 1.8.7+. See official documentation[http://ruby-doc.org/core-1.9/classes/Fixnum.html] def even? self[0].zero? end unless method_defined? :even? # Standard in ruby 1.8.7+. See official documentation[http://ruby-doc.org/core-1.9/classes/Fixnum.html] def odd? !even? end unless method_defined? :odd? # Standard in ruby 1.8.7+. See official documentation[http://ruby-doc.org/core-1.9/classes/Fixnum.html] def ord self end unless method_defined? :ord # Standard in ruby 1.8.7+. See official documentation[http://ruby-doc.org/core-1.9/classes/Fixnum.html] def pred self - 1 end unless method_defined? :pred end
Version data entries
53 entries across 53 versions & 2 rubygems