class String

Detect if a string contains only a numeric value

Public Instance Methods

is_number?() click to toggle source
# File lib/pinboard_tools/pinboard_tagger.rb, line 9
def is_number?
  true if Float(self) rescue false
end