class SiSU_Manpage::Source

Public Class Methods

new(opt) click to toggle source
# File lib/sisu/manpage.rb, line 71
def initialize(opt)
  @opt=opt
  if @opt.fns =~/(.+?)\.(?:-|ssm\.)?sst$/
    @@notes=:end
  else
    puts "#{sf} not a processed file type"
  end
end

Public Instance Methods

read() click to toggle source
# File lib/sisu/manpage.rb, line 79
def read
  begin
    md=SiSU_Param::Parameters.new(@opt).get
    specific={
      description:     'Manpage',
      output_path:     md.file.output_path.manpage.dir,
      output_file:     md.file.base_filename.manpage,
    }
    read_generic(@opt,specific)
    SiSU_Manpage::Source::Scroll.new(md,@ao_array,@wrap_width).songsheet
  rescue
    SiSU_Errors::Rescued.new($!,$@,@opt.selections.str,@opt.fns).location do
      __LINE__.to_s + ':' + __FILE__
    end
  ensure
    Dir.chdir(@opt.f_pth[:pth])
  end
end