class SiSU_Txt_OrgMode::Source
Public Class Methods
new(opt)
click to toggle source
# File lib/sisu/txt_orgmode.rb, line 70 def initialize(opt) @opt=opt unless @opt.fns =~/(.+?)\.(?:-|ssm\.)?sst$/ puts "#{sf} not a processed file type" end end
Public Instance Methods
read()
click to toggle source
# File lib/sisu/txt_orgmode.rb, line 76 def read begin md=SiSU_Param::Parameters.new(@opt).get specific={ description: 'OrgMode (plaintext utf-8)', output_path: md.file.output_path.orgmode.dir, output_file: md.file.base_filename.orgmode, } read_generic(@opt,specific) SiSU_Txt_OrgMode::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 end end