Skip to content

Instantly share code, notes, and snippets.

@emschwar
Created February 25, 2016 00:09
Show Gist options
  • Save emschwar/25ef609b021e354032b4 to your computer and use it in GitHub Desktop.
Save emschwar/25ef609b021e354032b4 to your computer and use it in GitHub Desktop.
class Device
include TempSensors
include LightSensors
end
module LightSensors
PROPERTIES = [
:light_sensor_1,
:light_sensor_2,
]
expose_properties *PROPERTIES
end
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