Class: RubyTunes::Country

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.playObject



26
27
28
# File 'lib/ruby_tunes.rb', line 26

def self.play
  Country.new.open_in_browser
end

Instance Method Details

#open_in_browserObject



30
31
32
# File 'lib/ruby_tunes.rb', line 30

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