Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/treyja/exe.rb
Class Method Summary collapse
Instance Method Summary collapse
- #to_s_with_round ⇒ Object (also: #to_s)
Class Method Details
.round_digits ⇒ Object
12 13 14 |
# File 'lib/treyja/exe.rb', line 12 def self.round_digits @round_digits end |
Instance Method Details
#to_s_with_round ⇒ Object Also known as: to_s
16 17 18 19 20 |
# File 'lib/treyja/exe.rb', line 16 def to_s_with_round Float.round_digits ? self.round(Float.round_digits).to_s_without_round : self.to_s_without_round end |