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.



64
65
66
# File 'lib/sisu/urls.rb', line 64

def initialize(opt)
  @opt=opt
end

Instance Attribute Details

#optObject (readonly)

Returns the value of attribute opt.



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

def opt
  @opt
end

Instance Method Details

#readObject



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

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