class OptionParser
Public Class Methods
roff_escape(str)
click to toggle source
# File lib/rabbit/console/roff.rb, line 80 def self.roff_escape(str) str.gsub(/[-\\]/, '\\\\\\&').gsub(/^[.']/, '\\&') # ' # TODO: taken over from rd2man-lib.rb, necessary to be confirmed end
Public Instance Methods
category(str)
click to toggle source
# File lib/rabbit/console/roff.rb, line 76 def category(str) top.append(Category.new(str), nil, nil) end
roff()
click to toggle source
# File lib/rabbit/console/roff.rb, line 68 def roff to = [%[.TH #{self.class.roff_escape(program_name.upcase)} "1"]] visit(:summarize_as_roff) do |l| to << l + $/ end to end