Sha256: d5713f6bec27f32096806be3d5e4e9bf27c54d1da42605d13a62a5a4b464d46e
Contents?: true
Size: 176 Bytes
Versions: 3
Compression:
Stored size: 176 Bytes
Contents
class Integer # Is an integer odd? # # require 'facet/integer/even&odd' # # 2.odd? #=> false # 3.odd? #=> true # def odd? self % 2 == 1 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | lib/facet/integer/odd%3F.rb |
facets-0.7.1 | lib/facet/integer/odd%3F.rb |
facets-0.7.2 | lib/facet/integer/odd%3F.rb |