Class: Rational
Instance Method Summary collapse
- #apricot_inspect ⇒ Object (also: #apricot_str)
Instance Method Details
#apricot_inspect ⇒ Object Also known as: apricot_str
142 143 144 145 146 147 148 |
# File 'lib/apricot/ruby_ext.rb', line 142 def apricot_inspect if @denominator == 1 @numerator.to_s else to_s end end |