Class: ReVIEW::BraceNode

Inherits:
Node show all
Defined in:
lib/review/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#inspect, #to_doc, #to_json, #to_raw, #to_s_by

Constructor Details

#initialize(compiler, position, content) ⇒ BraceNode

Returns a new instance of BraceNode.



893
894
895
896
897
# File 'lib/review/compiler.rb', line 893

def initialize(compiler, position, content)
  @compiler = compiler
  @position = position
  @content = content
end

Instance Attribute Details

#compilerObject (readonly)

Returns the value of attribute compiler.



898
899
900
# File 'lib/review/compiler.rb', line 898

def compiler
  @compiler
end

#contentObject (readonly)

Returns the value of attribute content.



900
901
902
# File 'lib/review/compiler.rb', line 900

def content
  @content
end

#positionObject (readonly)

Returns the value of attribute position.



899
900
901
# File 'lib/review/compiler.rb', line 899

def position
  @position
end