Class: String

Inherits:
Object show all
Defined in:
lib/lh.rb

Instance Method Summary collapse

Instance Method Details

#is_i?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/lh.rb', line 16

def is_i?
  !!(self =~ /^[-+]?[0-9]+$/)
end