Class: Money
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(f) ⇒ Money
constructor
A new instance of Money.
- #pretty_print ⇒ Object
Constructor Details
Instance Method Details
#<=>(other) ⇒ Object
18 19 20 |
# File 'lib/pratt/core_ext/float.rb', line 18 def <=> other @f <=> other end |
#pretty_print ⇒ Object
26 27 28 |
# File 'lib/pratt/core_ext/float.rb', line 26 def pretty_print "$#{@f.pretty_print}" end |