Compare commits

...

1 commit

Author SHA1 Message Date
Denis Knauf 8e2368bf95 example: mpd.connect. readline -> gets 2010-04-11 18:54:04 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@ Control your MPD:
require 'librmpd' require 'librmpd'
lirc = LIRC::Client.new lirc = LIRC::Client.new
mpd = MPD.new 'localhost', 6600 mpd = MPD.new 'localhost', 6600
mpd.connect
lirc.each do |event| lirc.each do |event|
case event.name case event.name
when "play" when "play"

View file

@ -8,7 +8,7 @@ module LIRC
end end
def next def next
Event.new @sock.readline Event.new @sock.gets
end end
def each_event def each_event