Class: ReVIEW::NewLineNode

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) ⇒ 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

#compilerObject (readonly)

Returns the value of attribute compiler.



1040
1041
1042
# File 'lib/review/compiler.rb', line 1040

def compiler
  @compiler
end

#contentObject (readonly)

Returns the value of attribute content.



1042
1043
1044
# File 'lib/review/compiler.rb', line 1042

def content
  @content
end

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



196
197
198
# File 'lib/review/node.rb', line 196

def to_doc
  ""
end