Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/puer/generators/gist.rb

Instance Method Summary collapse

Instance Method Details

#is_numeric?Boolean

Returns:

  • (Boolean)


14
15
16
17
18
19
# File 'lib/puer/generators/gist.rb', line 14

def is_numeric?
  Float(self)
  true 
rescue 
  false
end