Class: ReVIEW::SinglelineCommentNode

Inherits:
Node show all
Defined in:
lib/review/node.rb,
lib/review/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#compilerObject (readonly)

Returns the value of attribute compiler.



1094
1095
1096
# File 'lib/review/compiler.rb', line 1094

def compiler
  @compiler
end

#contentObject (readonly)

Returns the value of attribute content.



1096
1097
1098
# File 'lib/review/compiler.rb', line 1096

def content
  @content
end

#positionObject (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_docObject



215
216
217
# File 'lib/review/node.rb', line 215

def to_doc
  ""
end