Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/numeric.rb
Instance Method Summary collapse
-
#to_j(indent = 0) ⇒ String
Json for the numeric value.
Instance Method Details
#to_j(indent = 0) ⇒ String
Returns Json for the numeric value.
3 4 5 |
# File 'lib/numeric.rb', line 3 def to_j(indent = 0) " "*indent + self.to_s end |