Class: ActionDispatch::Journey::Nodes::Or

Inherits:
Node
  • Object
show all
Defined in:
lib/action_dispatch/journey/nodes/node.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Node

#left, #memo

Instance Method Summary collapse

Methods inherited from Node

#each, #literal?, #name, #symbol?, #to_dot, #to_s, #to_sym

Constructor Details

#initialize(children) ⇒ Or

Returns a new instance of Or.



120
121
122
# File 'lib/action_dispatch/journey/nodes/node.rb', line 120

def initialize(children)
  @children = children
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



118
119
120
# File 'lib/action_dispatch/journey/nodes/node.rb', line 118

def children
  @children
end

Instance Method Details

#typeObject



124
# File 'lib/action_dispatch/journey/nodes/node.rb', line 124

def type; :OR; end