Class: Quiyo
- Inherits:
-
Object
- Object
- Quiyo
- Defined in:
- lib/quiyo/core.rb,
lib/quiyo/colors.rb,
lib/quiyo/server.rb,
lib/quiyo/status.rb,
lib/quiyo/database.rb,
lib/quiyo/playback.rb,
lib/quiyo/playlist.rb
Defined Under Namespace
Modules: Colors, Core, Database, Playback, Playlist, Server, Status
Instance Method Summary collapse
-
#initialize(server, port, version) ⇒ Quiyo
constructor
A new instance of Quiyo.
Methods included from Playlist
#addtoplist, #clearplist, #lsplist, #randomalbum, #removefromplist, #saveplist
Methods included from Playback
#pause, #play, #playnext, #playprevious, #stop
Methods included from Database
Methods included from Status
#_print, #info, #nowplaying, #prompt, #time
Methods included from Server
Methods included from Colors
Methods included from Core
#help, #readline_hist, #showprompt
Constructor Details
#initialize(server, port, version) ⇒ Quiyo
Returns a new instance of Quiyo.
3 4 5 6 7 8 9 |
# File 'lib/quiyo/server.rb', line 3 def initialize(server, port, version) print colorize("++", 197) + " Connecting to MPD at #{server}:#{port}..." @mpd = MPD.new server, port @mpd.connect print colorize("Connected!\n", 70) print colorize("++", 197) + " This is quiyo #{version}\n\n" end |