class ReVIEW::Unfold

Constants

ZSPACE

Public Class Methods

new(indent_paragraph = false) click to toggle source
# File ../../../../../lib/review/unfold.rb, line 30
def initialize(indent_paragraph = false)
  @indent_paragraph = indent_paragraph
end
unfold(f) click to toggle source
# File ../../../../../lib/review/unfold.rb, line 26
def Unfold.unfold(f)
  new().unfold(f)
end
unfold_author_source(s) click to toggle source

unfold paragraphs and strip preprocessor tags.

# File ../../../../../lib/review/unfold.rb, line 22
def Unfold.unfold_author_source(s)
  unfold(Preprocessor::Strip.new(StringIO.new(s)))
end

Public Instance Methods

unfold(input, output = nil) click to toggle source

unfold(f) -> String unfold(input, output) -> nil

# File ../../../../../lib/review/unfold.rb, line 36
def unfold(input, output = nil)
  if output
    @output = output
    do_unfold input
    nil
  else
    @output = StringIO.new
    do_unfold input
    @output.string
  end
end