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.
62 63 64 |
# File 'lib/sisu/urls.rb', line 62 def initialize(opt) @opt=opt end |
Instance Attribute Details
#opt ⇒ Object (readonly)
Returns the value of attribute opt.
61 62 63 |
# File 'lib/sisu/urls.rb', line 61 def opt @opt end |
Instance Method Details
#read ⇒ Object
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 |