Class: Danica::Operator
- Inherits:
-
Object
- Object
- Danica::Operator
- Includes:
- BaseOperations, VariablesHolder
- Defined in:
- lib/danica/operator.rb,
lib/danica/operator/chained.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Addition, Chained, Cos, Division, Exponential, Functional, Multiplication, Power, Sin, SquaredRoot
Instance Method Summary collapse
Methods included from BaseOperations
Methods included from VariablesHolder
#calculate, #initialize, #variables=
Methods included from Common
#content, #formatted, #gnu, #tex, #to, #to_f, #to_gnu, #to_tex, #valued?
Instance Method Details
#==(other) ⇒ Object
23 24 25 26 27 |
# File 'lib/danica/operator.rb', line 23 def ==(other) return false unless other.class == self.class variables == other.variables end |