Class: SiSU_Urls::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/urls.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opt) ⇒ Source

Returns a new instance of Source.



62
63
64
# File 'lib/sisu/urls.rb', line 62

def initialize(opt)
  @opt=opt
end

Instance Attribute Details

#optObject (readonly)

Returns the value of attribute opt.



61
62
63
# File 'lib/sisu/urls.rb', line 61

def opt
  @opt
end

Instance Method Details

#readObject



65
66
67
68
69
70
71
72
73
74
# File 'lib/sisu/urls.rb', line 65

def read
  begin
    SiSU_Urls::OutputUrls.new(@opt).songsheet if @opt.fnb
  rescue
    SiSU_Errors::Rescued.new($!,$@,@opt.selections.str).location do
      __LINE__.to_s + ':' + __FILE__
    end
  ensure
  end
end