Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#to_j(indent = 0) ⇒ String

Adds formatted json convertion

Returns:

  • (String)

    Json for the numeric value



5
6
7
# File 'lib/numeric.rb', line 5

def to_j(indent = 0)
  '  ' * indent + self.to_s
end