Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ubiq/builder.rb
Instance Method Summary collapse
Instance Method Details
#integer? ⇒ Boolean
2 3 4 5 |
# File 'lib/ubiq/builder.rb', line 2 def integer? return true if self =~ /^[1-9]\d*(\.\d+)?$/ false end |