Skip to content

Instantly share code, notes, and snippets.

@bash0C7
Last active August 29, 2015 14:00
Show Gist options
  • Save bash0C7/11118928 to your computer and use it in GitHub Desktop.
Save bash0C7/11118928 to your computer and use it in GitHub Desktop.
My Iremocon
MyIremocon.denki_toggle
MyIremocon.bose_m3_toggle
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