Class: String
Instance Method Summary collapse
Instance Method Details
#is_i? ⇒ Boolean
16 17 18 |
# File 'lib/lh.rb', line 16 def is_i? !!(self =~ /^[-+]?[0-9]+$/) end |
16 17 18 |
# File 'lib/lh.rb', line 16 def is_i? !!(self =~ /^[-+]?[0-9]+$/) end |