Class: BlockScore::Collection
- Inherits:
-
Array
- Object
- Array
- BlockScore::Collection
- Defined in:
- lib/blockscore/collection.rb
Instance Method Summary collapse
-
#initialize(target) ⇒ Collection
constructor
A new instance of Collection.
- #respond_to?(method, include_all = false) ⇒ Boolean
Constructor Details
#initialize(target) ⇒ Collection
Returns a new instance of Collection.
3 4 5 6 |
# File 'lib/blockscore/collection.rb', line 3 def initialize(target) super() @target = target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
14 15 16 |
# File 'lib/blockscore/collection.rb', line 14 def method_missing(method, *args, &block) @target.public_send(method, *args, &block) end |
Instance Method Details
#respond_to?(method, include_all = false) ⇒ Boolean
8 9 10 |
# File 'lib/blockscore/collection.rb', line 8 def respond_to?(method, include_all = false) @target.respond_to?(method, include_all) end |