Class: SiSU_Urls::Source
- Inherits:
-
Object
- Object
- SiSU_Urls::Source
- Defined in:
- lib/sisu/urls.rb
Instance Attribute Summary collapse
-
#opt ⇒ Object
readonly
Returns the value of attribute opt.
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.
64 65 66 |
# File 'lib/sisu/urls.rb', line 64 def initialize(opt) @opt=opt end |
Instance Attribute Details
#opt ⇒ Object (readonly)
Returns the value of attribute opt.
63 64 65 |
# File 'lib/sisu/urls.rb', line 63 def opt @opt end |
Instance Method Details
#read ⇒ Object
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 |