Class: ReVIEW::UlistNode
- Defined in:
- lib/review/node.rb,
lib/review/compiler.rb
Instance Attribute Summary collapse
-
#compiler ⇒ Object
readonly
Returns the value of attribute compiler.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(compiler, position, content) ⇒ UlistNode
constructor
A new instance of UlistNode.
- #to_doc ⇒ Object
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
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
1124 1125 1126 |
# File 'lib/review/compiler.rb', line 1124 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
1126 1127 1128 |
# File 'lib/review/compiler.rb', line 1126 def content @content end |
#position ⇒ Object (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_doc ⇒ Object
224 225 226 |
# File 'lib/review/node.rb', line 224 def to_doc @compiler.compile_ulist(@content) end |