Last active
August 29, 2015 14:00
-
-
Save bash0C7/11118928 to your computer and use it in GitHub Desktop.
My Iremocon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyIremocon.denki_toggle | |
MyIremocon.bose_m3_toggle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'iremocon' | |
class MyIremocon | |
class << self | |
def denki_toggle | |
is 1 | |
end | |
def bose_m3_toggle | |
is 2 | |
end | |
def is channel | |
iremocon = Iremocon.new '192.168.0.100' | |
iremocon.is channel | |
iremocon.instance_eval {@telnet.close} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment