lib/danica/common.rb in danica-2.0.1 vs lib/danica/common.rb in danica-2.0.2

- old
+ new

@@ -1,7 +1,8 @@ module Danica class Common + include BaseOperations require 'danica/common/class_methods' require 'danica/common/variables_builder' attr_accessor :variables @@ -11,10 +12,10 @@ def calculate(*args) vars_map = args.extract_options! vars_map = variables_value_hash.merge(vars_map) vars_map.each do |k, v| - unless v && (v.is_a?(Fixnum) || v.valued?) + unless v && (v.is_a?(Integer) || v.valued?) vars_map[k] = args.shift end end self.class.new(vars_map).to_f