class Wemote::Collection::Switch
This class provides an extension on the basic Array object, in order to facilitate group operations on a collection of Wemote::Switch
instances.
Private Class Methods
make(name)
click to toggle source
@macro [attach] container.increment
@method $1() Calls {Wemote::Switch#$1} on all containing elements and return the results in an array @return [Array]
# File lib/wemote/collection/switch.rb, line 17 def make(name) define_method(name){map{|s|s.send(name)}} end