Class: String

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

Instance Method Summary collapse

Instance Method Details

#integer?Boolean

Returns:

  • (Boolean)


2
3
4
5
6
# File 'lib/data_builder/core_ext/string.rb', line 2

def integer?
  true if Integer(self)
rescue StandardError
  false
end