Class: String

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/Atlantis/portal/helpers.rb,
lib/Atlantis/portal/helpers.rb

Instance Method Summary collapse

Instance Method Details

#is_i?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/Atlantis/portal/helpers.rb', line 11

def is_i?
  !!(self =~ /\A[-+]?[0-9]+\z/)
end