Sha256: e84d6bb966e5246c73f8a7644d17a72d316043ce453313e9086a8faf6cf9d04b

Contents?: true

Size: 885 Bytes

Versions: 2

Compression:

Stored size: 885 Bytes

Contents

# frozen_string_literal: true

module Danica
  class Operator
    include VariablesHolder

    autoload :Functional,     'danica/operator/functional'
    autoload :Chained,        'danica/operator/chained'
    autoload :Multiplication, 'danica/operator/multiplication'
    autoload :Addition,       'danica/operator/addition'
    autoload :Division,       'danica/operator/division'
    autoload :Power,          'danica/operator/power'
    autoload :Cos,            'danica/operator/cos'
    autoload :Sin,            'danica/operator/sin'
    autoload :SquaredRoot,    'danica/operator/squared_root'
    autoload :Exponential,    'danica/operator/exponential'

    include BaseOperations

    default_value :priority, 4
    default_value :is_grouped?, false

    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.7.7 lib/danica/operator.rb
danica-2.7.6 lib/danica/operator.rb