Sha256: 07058088291e0fede3b734987bbab6ca24a3c170ca9df98a502ea0ca4ab5464f

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module Danica
  class Operator
    include Common
    include VariablesHolder
    include BaseOperations
    include ActiveModel::Model

    default_value :priority, 3
    default_value :is_grouped?, false
  
    def initialize(*args)
      super( variables: args.flatten )
    end

    def ==(other)
      return false unless other.class == self.class
      variables == other.variables
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danica-2.2.1 lib/danica/operator.rb
danica-2.2.0 lib/danica/operator.rb