class ReVIEW::OlistElementNode

Attributes

compiler[R]
content[R]
num[R]
position[R]

Public Class Methods

new(compiler, position, num, content) click to toggle source
# File lib/review/compiler.rb, line 1055
def initialize(compiler, position, num, content)
  @compiler = compiler
  @position = position
  @num = num
  @content = content
end

Public Instance Methods

concat(elem) click to toggle source
# File lib/review/node.rb, line 258
def concat(elem)
  @content << elem
end
num=(num) click to toggle source
# File lib/review/node.rb, line 250
def num=(num)
  @num = num
end
to_doc() click to toggle source
# File lib/review/node.rb, line 254
def to_doc
  @content.map(&:to_doc).join("")
end