Sha256: e188aa17ab67401a000dde568f869462790c2c580c3fc6d42fef7539a229ea4b

Contents?: true

Size: 78 Bytes

Versions: 9

Compression:

Stored size: 78 Bytes

Contents

class Integer
  def consecutive?(m)
    self == m.succ or succ == m
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
numb-0.186.0 lib/numb/consecutive.rb
numb-0.185.0 lib/numb/consecutive.rb
numb-0.184.0 lib/numb/consecutive.rb
numb-0.181.0 lib/numb/consecutive.rb
numb-0.170.0 lib/numb/consecutive.rb
numb-0.152.0 lib/numb/consecutive.rb
numb-0.138.0 lib/numb/consecutive.rb
numb-0.125.0 lib/numb/consecutive.rb
numb-0.114.0 lib/numb/consecutive.rb