Sha256: 8c72ecadd9765fdecd4a578bbb764591b9b1cc2031a2f637e172118924b22901

Contents?: true

Size: 74 Bytes

Versions: 17

Compression:

Stored size: 74 Bytes

Contents

# coding: utf-8
class Integer
  def triangular?
    n_gonal?(3)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
numb-0.152.0 lib/numb/triangular.rb
numb-0.138.0 lib/numb/triangular.rb
numb-0.125.0 lib/numb/triangular.rb
numb-0.114.0 lib/numb/triangular.rb
numb-0.111.0 lib/numb/triangular.rb
numb-0.109.0 lib/numb/triangular.rb
numb-0.99.0 lib/numb/triangular.rb
numb-0.96.0 lib/numb/triangular.rb
numb-0.89.0 lib/numb/triangular.rb
numb-0.84.0 lib/numb/triangular.rb
numb-0.77.0 lib/numb/triangular.rb
numb-0.72.1 lib/numb/triangular.rb
numb-0.72.0 lib/numb/triangular.rb
numb-0.68.0 lib/numb/triangular.rb
numb-0.63.0 lib/numb/triangular.rb
numb-0.21.0 lib/numb/triangular.rb
numb-0.20.0 lib/numb/triangular.rb