Class: RubyTunes::Pop

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.playObject



49
50
51
# File 'lib/ruby_tunes.rb', line 49

def self.play
  Pop.new.open_in_browser
end

Instance Method Details

#open_in_browserObject



53
54
55
# File 'lib/ruby_tunes.rb', line 53

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