Class: Danica::Operator

Inherits:
Common
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/danica/operator.rb,
lib/danica/operator/chained.rb

Direct Known Subclasses

Division, Exponential, Chained, Power, SquareRoot

Defined Under Namespace

Classes: Chained

Instance Attribute Summary

Attributes inherited from Common

#variables

Instance Method Summary collapse

Methods inherited from Common

#calculate, #to_f, #to_gnu, #to_tex, #valued?, variables, #variables_hash, variables_names, #variables_value_hash

Constructor Details

#initialize(*args) ⇒ Operator

Returns a new instance of Operator.



5
6
7
# File 'lib/danica/operator.rb', line 5

def initialize(*args)
  super( variables: args.flatten )
end