lib/danica/operator.rb in danica-2.6.0 vs lib/danica/operator.rb in danica-2.6.1
- old
+ new
@@ -1,18 +1,11 @@
module Danica
class Operator
- include Common
include VariablesHolder
include BaseOperations
default_value :priority, 3
default_value :is_grouped?, false
-
- def initialize(*args)
- args = args.flatten
- args = args.first if (args.length == 1) && args.first.is_a?(Hash) && args.first.keys == self.class.variables_names
- self.variables = args
- end
def ==(other)
return false unless other.class == self.class
variables == other.variables
end