Class: ReVIEW::OlistElementNode
- 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.
-
#num ⇒ Object
Returns the value of attribute num.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
- #concat(elem) ⇒ Object
-
#initialize(compiler, position, num, content) ⇒ OlistElementNode
constructor
A new instance of OlistElementNode.
- #to_doc ⇒ Object
Methods inherited from Node
#inspect, #to_json, #to_raw, #to_s_by
Constructor Details
#initialize(compiler, position, num, content) ⇒ OlistElementNode
Returns a new instance of OlistElementNode.
1055 1056 1057 1058 1059 1060 |
# File 'lib/review/compiler.rb', line 1055 def initialize(compiler, position, num, content) @compiler = compiler @position = position @num = num @content = content end |
Instance Attribute Details
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
1061 1062 1063 |
# File 'lib/review/compiler.rb', line 1061 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
1064 1065 1066 |
# File 'lib/review/compiler.rb', line 1064 def content @content end |
#num ⇒ Object
Returns the value of attribute num.
1063 1064 1065 |
# File 'lib/review/compiler.rb', line 1063 def num @num end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
1062 1063 1064 |
# File 'lib/review/compiler.rb', line 1062 def position @position end |