Class: String

Inherits:
Object show all
Defined in:
lib/bolo/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#integer?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/bolo/core_ext/string.rb', line 2

def integer?
  self.match?(/^\d+$/)
end