Class: String

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

Overview

numeric test

Instance Method Summary collapse

Instance Method Details

#number?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/hasmenu/spellchecker.rb', line 8

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