Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/jekyll-pluralize.rb
Overview
Override Integer CLass
Instance Method Summary collapse
Instance Method Details
#numeric? ⇒ Boolean
38 39 40 41 42 43 44 45 46 |
# File 'lib/jekyll-pluralize.rb', line 38 def numeric? return true if self =~ /\A\d+\Z/ begin true if Float(self) rescue TypeError false end end |