Skip to content

Commit

Permalink
Store scale as float
Browse files Browse the repository at this point in the history
  • Loading branch information
mhammiche committed Jul 17, 2015
1 parent c473593 commit c4e10d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shaku/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Measure
def initialize(scale, unit)
raise ArgumentError, 'Scale should be a number' unless scale.respond_to?(:to_int)
raise ArgumentError, 'Unit argument should be a string' unless unit.respond_to?(:to_str)
@scale = scale
@scale = scale.to_f
@unit = unit
end
end
Expand Down

0 comments on commit c4e10d0

Please sign in to comment.