Class: RubyTunes::Rock

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_tunes.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.playObject



15
16
17
# File 'lib/ruby_tunes.rb', line 15

def self.play
  Rock.new.open_in_browser
end

Instance Method Details

#open_in_browserObject



19
20
21
# File 'lib/ruby_tunes.rb', line 19

def open_in_browser
  Launchy.open($music["rock"].sample)
end