Class: RubyTunes::Rock
- Inherits:
-
Object
- Object
- RubyTunes::Rock
- Defined in:
- lib/ruby_tunes.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.play ⇒ Object
15 16 17 |
# File 'lib/ruby_tunes.rb', line 15 def self.play Rock.new.open_in_browser end |
Instance Method Details
#open_in_browser ⇒ Object
19 20 21 |
# File 'lib/ruby_tunes.rb', line 19 def open_in_browser Launchy.open($music["rock"].sample) end |