Class: Wemote::Collection::Switch
- Inherits:
-
Array
- Object
- Array
- Wemote::Collection::Switch
- Defined in:
- lib/wemote/collection/switch.rb
Overview
This class provides an extension on the basic Array object, in order to facilitate group operations on a collection of Wemote::Switch instances.
Direct Known Subclasses
Instance Method Summary collapse
-
#off! ⇒ Array
Calls Switch#off! on all containing elements and return the results in an array.
-
#off? ⇒ Array
Calls Switch#off? on all containing elements and return the results in an array.
-
#on! ⇒ Array
Calls Switch#on! on all containing elements and return the results in an array.
-
#on? ⇒ Array
Calls Switch#on? on all containing elements and return the results in an array.
-
#toggle! ⇒ Array
Calls Switch#toggle! on all containing elements and return the results in an array.
Instance Method Details
#off! ⇒ Array
Calls Switch#off! on all containing elements and return the results in an array
24 |
# File 'lib/wemote/collection/switch.rb', line 24 make :off! |
#off? ⇒ Array
Calls Switch#off? on all containing elements and return the results in an array
25 |
# File 'lib/wemote/collection/switch.rb', line 25 make :off? |
#on! ⇒ Array
Calls Switch#on! on all containing elements and return the results in an array
26 |
# File 'lib/wemote/collection/switch.rb', line 26 make :on! |
#on? ⇒ Array
Calls Switch#on? on all containing elements and return the results in an array
27 |
# File 'lib/wemote/collection/switch.rb', line 27 make :on? |
#toggle! ⇒ Array
Calls Switch#toggle! on all containing elements and return the results in an array
23 |
# File 'lib/wemote/collection/switch.rb', line 23 make :toggle! |