Created
February 25, 2016 00:09
-
-
Save emschwar/25ef609b021e354032b4 to your computer and use it in GitHub Desktop.
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
class Device | |
include TempSensors | |
include LightSensors | |
end |
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
module LightSensors | |
PROPERTIES = [ | |
:light_sensor_1, | |
:light_sensor_2, | |
] | |
expose_properties *PROPERTIES | |
end |
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
module TempSensors | |
PROPERTIES = [ | |
:temp_sensor_1, | |
:temp_sensor_2 | |
] | |
expose_properties *PROPERTIES | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment