Class: SiSU_Wikispeak::Source
- Inherits:
-
Object
- Object
- SiSU_Wikispeak::Source
- Defined in:
- lib/sisu/wikispeak.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Output, Scroll, SplitTextObject
Instance Method Summary collapse
-
#initialize(opt) ⇒ Source
constructor
A new instance of Source.
- #read ⇒ Object
Constructor Details
#initialize(opt) ⇒ Source
Returns a new instance of Source.
70 71 72 73 |
# File 'lib/sisu/wikispeak.rb', line 70 def initialize(opt) @opt=opt @@dostype='msdos footnotes' end |
Instance Method Details
#read ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/sisu/wikispeak.rb', line 74 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 |