aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/wikispeak.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/wikispeak.rb')
-rw-r--r--lib/sisu/v2/wikispeak.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sisu/v2/wikispeak.rb b/lib/sisu/v2/wikispeak.rb
index 0bb77c36..df6cdb50 100644
--- a/lib/sisu/v2/wikispeak.rb
+++ b/lib/sisu/v2/wikispeak.rb
@@ -78,13 +78,11 @@ module SiSU_Wikispeak
@md=SiSU_Param::Parameters.new(@opt).get
@env=SiSU_Env::Info_env.new(@opt.fns)
path=@env.path.output_tell
- tool=if @opt.cmd =~/[MVv]/; "#{@env.program.text_editor} #{path}/#{@md.fnb}/#{@md.fn[:wiki]}"
- else ''
- end
- tell=SiSU_Screen::Ansi.new(@opt.cmd,'Wikispeak',tool)
- tell.green_hi_blue unless @opt.cmd =~/q/
- tell=SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/#{@md.fnb}/#{@md.fn[:wiki]}")
- tell.flow if @opt.cmd =~/[MV]/
+ tool=(@opt.cmd =~/[MVv]/) \
+ ? "#{@env.program.text_editor} #{path}/#{@md.fnb}/#{@md.fn[:wiki]}" \
+ : ''
+ SiSU_Screen::Ansi.new(@opt.cmd,'Wikispeak',tool).green_hi_blue unless @opt.cmd =~/q/
+ SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/#{@md.fnb}/#{@md.fn[:wiki]}").flow if @opt.cmd =~/[MV]/
my_make=SiSU_Env::Create_file.new(@opt.cmd,@opt.fns)
@dal_array=SiSU_DAL::Source.new(@opt).get # dal file drawn here
SiSU_Wikispeak::Source::Scroll.new(@dal_array,@md).songsheet