Class: String

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

Instance Method Summary collapse

Instance Method Details

#is_number?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/reparto.rb', line 34

def is_number?
  true if Float(self) rescue false
end