Class: ReVIEW::DocumentNode
- 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) ⇒ DocumentNode
constructor
A new instance of DocumentNode.
Methods inherited from Node
#inspect, #to_doc, #to_json, #to_raw, #to_s_by
Constructor Details
#initialize(compiler, position, content) ⇒ DocumentNode
Returns a new instance of DocumentNode.
987 988 989 990 991 |
# File 'lib/review/compiler.rb', line 987 def initialize(compiler, position, content) @compiler = compiler @position = position @content = content end |
Instance Attribute Details
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
992 993 994 |
# File 'lib/review/compiler.rb', line 992 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
994 995 996 |
# File 'lib/review/compiler.rb', line 994 def content @content end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
993 994 995 |
# File 'lib/review/compiler.rb', line 993 def position @position end |