Class: ReVIEW::DlistNode
- 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) ⇒ DlistNode
constructor
A new instance of DlistNode.
- #to_doc ⇒ Object
Methods inherited from Node
#inspect, #to_json, #to_raw, #to_s_by
Constructor Details
#initialize(compiler, position, content) ⇒ DlistNode
Returns a new instance of DlistNode.
965 966 967 968 969 |
# File 'lib/review/compiler.rb', line 965 def initialize(compiler, position, content) @compiler = compiler @position = position @content = content end |
Instance Attribute Details
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
970 971 972 |
# File 'lib/review/compiler.rb', line 970 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
972 973 974 |
# File 'lib/review/compiler.rb', line 972 def content @content end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
971 972 973 |
# File 'lib/review/compiler.rb', line 971 def position @position end |
Instance Method Details
#to_doc ⇒ Object
264 265 266 |
# File 'lib/review/node.rb', line 264 def to_doc @compiler.compile_dlist(@content) end |