Method: Musical::DVD.load
- Defined in:
- lib/musical/dvd.rb
.load(options = {}) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/musical/dvd.rb', line 37 def self.load( = {}) if @@path.nil? || [:forcibly] @@path = [:path] || self.detect end dvd = DVD.instance dvd.title = [:title] || Musical.configuration.title dvd.artist = [:artist] || Musical.configuration.artist dvd.year = [:year] || Musical.configuration.year if block_given? yield(dvd) end dvd.info end |