Class: Red::ConjunctionNode

Inherits:
Object
  • Object
show all
Defined in:
lib/red/conjunction_nodes.rb

Overview

:nodoc:

Direct Known Subclasses

AndNode, OrNode

Defined Under Namespace

Classes: AndNode, OrNode

Instance Method Summary collapse

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(options = {})
  [@a, @b].compile_nodes(:as_argument => true)
end