Class: Refract::UntilNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/until_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #copy, #start_line, #type, type

Constructor Details

#initialize(prism_node: nil, predicate:, statements:, inline:) ⇒ UntilNode

Returns a new instance of UntilNode.



5
6
7
8
9
10
11
# File 'lib/refract/nodes/until_node.rb', line 5

def initialize(prism_node: nil, predicate:, statements:, inline:)
	@prism_node = prism_node => Prism::Node | nil
	@predicate = predicate
	@statements = statements
	@inline = inline
	freeze
end

Instance Attribute Details

#inlineObject

Returns the value of attribute inline.



13
14
15
# File 'lib/refract/nodes/until_node.rb', line 13

def inline
  @inline
end

#predicateObject

Returns the value of attribute predicate.



13
14
15
# File 'lib/refract/nodes/until_node.rb', line 13

def predicate
  @predicate
end

#statementsObject

Returns the value of attribute statements.



13
14
15
# File 'lib/refract/nodes/until_node.rb', line 13

def statements
  @statements
end