Class: ReVIEW::UlistNode

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_json, #to_raw, #to_s_by

Constructor Details

#initialize(compiler, position, content) ⇒ UlistNode

Returns a new instance of UlistNode.



1119
1120
1121
1122
1123
# File 'lib/review/compiler.rb', line 1119

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

Instance Attribute Details

#compilerObject (readonly)

Returns the value of attribute compiler.



1124
1125
1126
# File 'lib/review/compiler.rb', line 1124

def compiler
  @compiler
end

#contentObject (readonly)

Returns the value of attribute content.



1126
1127
1128
# File 'lib/review/compiler.rb', line 1126

def content
  @content
end

#positionObject (readonly)

Returns the value of attribute position.



1125
1126
1127
# File 'lib/review/compiler.rb', line 1125

def position
  @position
end

Instance Method Details

#to_docObject



224
225
226
# File 'lib/review/node.rb', line 224

def to_doc
  @compiler.compile_ulist(@content)
end