class RD::Verbatim

Attributes

content[R]

Public Class Methods

new(content_strings = []) click to toggle source
Calls superclass method
# File lib/rd/block-element.rb, line 93
def initialize(content_strings = [])
  super()
  @content = content_strings  # Array of String
end

Public Instance Methods

accept(visitor) click to toggle source
# File lib/rd/block-element.rb, line 98
def accept(visitor)
  visitor.visit_Verbatim(self)
end
each_line() { |i| ... } click to toggle source
# File lib/rd/block-element.rb, line 102
def each_line
  if @content.respond_to?(:each_line)
    @content.each_line {|i|
      yield i
    }
  else
    @content.each {|i|
      yield i
    }
  end
end