class SiSU_Wikispeak::Source

Public Class Methods

new(opt) click to toggle source
# File lib/sisu/wikispeak.rb, line 68
def initialize(opt)
  @opt=opt
  @@dostype='msdos footnotes'
end

Public Instance Methods

read() click to toggle source
# File lib/sisu/wikispeak.rb, line 72
def read
  begin
    @md=SiSU_Param::Parameters.new(@opt).get
    @env=SiSU_Env::InfoEnv.new(@opt.fns)
    path=@env.path.output_tell
    tool=(@opt.act[:verbose][:set]==:on \
    || @opt.act[:verbose_plus][:set]==:on \
    || @opt.act[:maintenance][:set]==:on) \
    ? "#{@env.program.text_editor} #{path}/#{@md.fnb}/#{@md.fn[:wiki]}"
    : ''
    SiSU_Screen::Ansi.new(
      @opt.act[:color_state][:set],
      'Wikispeak',
      tool
    ).green_hi_blue unless @opt.act[:quiet][:set]==:on
    if (@opt.act[:verbose_plus][:set]==:on \
    || @opt.act[:maintenance][:set]==:on)
      SiSU_Screen::Ansi.new(
        @opt.act[:color_state][:set],
        @opt.fns,
        "#{@env.path.output_tell}/#{@md.fnb}/#{@md.fn[:wiki]}"
      ).flow
    end
    @ao_array=SiSU_AO::Source.new(@opt).get # ao file drawn here
    SiSU_Wikispeak::Source::Scroll.new(@ao_array,@md).songsheet
  rescue
    SiSU_Errors::Rescued.new($!,$@,@opt.selections.str,@opt.fns).location do
      __LINE__.to_s + ':' + __FILE__
    end
  ensure
  end
end