lib/danica/operator.rb in danica-2.4.4 vs lib/danica/operator.rb in danica-2.5.0

- old
+ new

@@ -6,10 +6,12 @@ default_value :priority, 3 default_value :is_grouped?, false def initialize(*args) - self.variables = args.flatten + 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