Module: HTTPAttack::Items
- Defined in:
- lib/httpattack/items.rb,
lib/httpattack/items/base.rb,
lib/httpattack/items/github.rb,
lib/httpattack/items/twitter.rb,
lib/httpattack/items/status_net.rb
Defined Under Namespace
Classes: Base, Github, InvalidStat, MustOverrideMethod, StatusNet, Twitter
Constant Summary collapse
- TYPES =
A list of registered Item types (the actual classes).
[ Github, StatusNet, Twitter ]
Class Method Summary collapse
-
.each(&block) ⇒ Object
Items enumerator.
-
.map(&block) ⇒ Object
Items enumerator.
Class Method Details
.each(&block) ⇒ Object
Items enumerator. Just a wrapper to the TYPES array #each method.
16 17 18 |
# File 'lib/httpattack/items.rb', line 16 def self.each(&block) TYPES.send(:each, &block) if TYPES.respond_to?(:each) end |
.map(&block) ⇒ Object
Items enumerator. Just a wrapper to the TYPES array #map method.
21 22 23 |
# File 'lib/httpattack/items.rb', line 21 def self.map(&block) TYPES.send(:map, &block) if TYPES.respond_to?(:map) end |