Class: ReVIEW::SinglelineCommentNode
- 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) ⇒ SinglelineCommentNode
constructor
A new instance of SinglelineCommentNode.
- #to_doc ⇒ Object
Methods inherited from Node
#inspect, #to_json, #to_raw, #to_s_by
Constructor Details
#initialize(compiler, position, content) ⇒ SinglelineCommentNode
Returns a new instance of SinglelineCommentNode.
1089 1090 1091 1092 1093 |
# File 'lib/review/compiler.rb', line 1089 def initialize(compiler, position, content) @compiler = compiler @position = position @content = content end |
Instance Attribute Details
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
1094 1095 1096 |
# File 'lib/review/compiler.rb', line 1094 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
1096 1097 1098 |
# File 'lib/review/compiler.rb', line 1096 def content @content end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
1095 1096 1097 |
# File 'lib/review/compiler.rb', line 1095 def position @position end |
Instance Method Details
#to_doc ⇒ Object
215 216 217 |
# File 'lib/review/node.rb', line 215 def to_doc "" end |