Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/oxcelix.rb

Instance Method Summary collapse

Instance Method Details

#numeric?Bool

Returns true if the given String represents a numeric value


21
22
23
# File 'lib/oxcelix.rb', line 21

def numeric?
  Float(self) != nil rescue false
end