diff --git a/lib/lirc.rb b/lib/lirc.rb index 0b32cd7..a4f5e9e 100644 --- a/lib/lirc.rb +++ b/lib/lirc.rb @@ -19,5 +19,8 @@ module LIRC def repeat? @repeat > 0 end + def to_s + sprintf("%016x %02d %s %s", @code, @repeat, @name, @remote) + end end end