Class: Float

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.round_digitsObject



12
13
14
# File 'lib/treyja/exe.rb', line 12

def self.round_digits
  @round_digits
end

Instance Method Details

#to_s_with_roundObject 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