Class: ReVIEW::SinglelineContentNode

Inherits:
Node show all
Defined in:
lib/review/node.rb,
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) ⇒ SinglelineContentNode

Returns a new instance of SinglelineContentNode.



1099
1100
1101
1102
1103
# File 'lib/review/compiler.rb', line 1099

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

Instance Attribute Details

#compilerObject (readonly)

Returns the value of attribute compiler.



1104
1105
1106
# File 'lib/review/compiler.rb', line 1104

def compiler
  @compiler
end

#contentObject (readonly)

Returns the value of attribute content.



1106
1107
1108
# File 'lib/review/compiler.rb', line 1106

def content
  @content
end

#positionObject (readonly)

Returns the value of attribute position.



1105
1106
1107
# File 'lib/review/compiler.rb', line 1105

def position
  @position
end