Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ubiq/builder.rb

Instance Method Summary collapse

Instance Method Details

#integer?Boolean

Returns:

  • (Boolean)


2
3
4
5
# File 'lib/ubiq/builder.rb', line 2

def integer?
  return true if self =~ /^[1-9]\d*(\.\d+)?$/
  false
end