Class: ReVIEW::NewLineNode
- 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) ⇒ NewLineNode
constructor
A new instance of NewLineNode.
- #to_doc ⇒ Object
Methods inherited from Node
#inspect, #to_json, #to_raw, #to_s_by
Constructor Details
#initialize(compiler, position, content) ⇒ NewLineNode
Returns a new instance of NewLineNode.
1035 1036 1037 1038 1039 |
# File 'lib/review/compiler.rb', line 1035 def initialize(compiler, position, content) @compiler = compiler @position = position @content = content end |
Instance Attribute Details
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
1040 1041 1042 |
# File 'lib/review/compiler.rb', line 1040 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
1042 1043 1044 |
# File 'lib/review/compiler.rb', line 1042 def content @content end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
1041 1042 1043 |
# File 'lib/review/compiler.rb', line 1041 def position @position end |
Instance Method Details
#to_doc ⇒ Object
196 197 198 |
# File 'lib/review/node.rb', line 196 def to_doc "" end |