Class: ExaltedMath::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/exalted_math/node/add.rb,
lib/exalted_math/node/list.rb,
lib/exalted_math/node/node.rb,
lib/exalted_math/node/named.rb,
lib/exalted_math/node/divide.rb,
lib/exalted_math/node/number.rb,
lib/exalted_math/node/maximum.rb,
lib/exalted_math/node/minimum.rb,
lib/exalted_math/node/multiply.rb,
lib/exalted_math/node/operator.rb,
lib/exalted_math/node/subtract.rb

Direct Known Subclasses

List, Named, Number, Operator

Defined Under Namespace

Classes: Add, Divide, List, Maximum, Minimum, Multiply, Named, Number, Operator, Spec, Stat, Subtract

Instance Method Summary collapse

Constructor Details

#initializeNode

Returns a new instance of Node.



4
5
# File 'lib/exalted_math/node/node.rb', line 4

def initialize(*)
end

Instance Method Details

#constant?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/exalted_math/node/node.rb', line 7

def constant?
  true
end

#simplifyObject



15
16
17
# File 'lib/exalted_math/node/node.rb', line 15

def simplify
  self
end

#valid?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/exalted_math/node/node.rb', line 19

def valid?(*)
  false
end

#value(context = {}) ⇒ Object



11
12
13
# File 'lib/exalted_math/node/node.rb', line 11

def value(context={})
  nil
end