Class: Red::ConjunctionNode
- Inherits:
-
Object
- Object
- Red::ConjunctionNode
- Defined in:
- lib/red/conjunction_nodes.rb
Overview
:nodoc:
Defined Under Namespace
Instance Method Summary collapse
- #compile_internals(options = {}) ⇒ Object
-
#initialize(a, b) ⇒ ConjunctionNode
constructor
A new instance of ConjunctionNode.
Constructor Details
#initialize(a, b) ⇒ ConjunctionNode
Returns a new instance of ConjunctionNode.
3 4 5 |
# File 'lib/red/conjunction_nodes.rb', line 3 def initialize(a, b) @a, @b = [a, b].build_nodes end |
Instance Method Details
#compile_internals(options = {}) ⇒ Object
7 8 9 |
# File 'lib/red/conjunction_nodes.rb', line 7 def compile_internals( = {}) [@a, @b].compile_nodes(:as_argument => true) end |