Sha256: 1dfea922bc74e6ce72e8500bf42f415d3bc8d55a3e6315b6d6e5b394fdf25f8f

Contents?: true

Size: 852 Bytes

Versions: 3

Compression:

Stored size: 852 Bytes

Contents

module Danica
  class Operator
    include VariablesHolder
    include BaseOperations

    default_value :priority, 4
    default_value :is_grouped?, false

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

    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'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danica-2.7.4 lib/danica/operator.rb
danica-2.7.3 lib/danica/operator.rb
danica-2.7.2 lib/danica/operator.rb