lib/rubyonacid/factory.rb in rubyonacid-0.1.1 vs lib/rubyonacid/factory.rb in rubyonacid-0.1.2

- old
+ new

@@ -13,10 +13,10 @@ end #Calls get_unit with key to get value between 0.0 and 1.0, then converts that value to be between given minimum and maximum. def get(key, options = {}) @minimums[key] = (options[:min] || @minimums[key] || 0.0) - @maximums[key] = (options[:max] || @maximums[key] || @minimums[key] > 1.0 ? @minimums[key] + 1.0 : 1.0) + @maximums[key] = (options[:max] || @maximums[key] || (@minimums[key] > 1.0 ? @minimums[key] + 1.0 : 1.0)) get_unit(key) * (@maximums[key] - @minimums[key]) + @minimums[key] end #Returns true if get_unit(key) returns greater than 0.5. def boolean(key) \ No newline at end of file