Class: Lipa::Bunch
- Inherits:
-
Object
- Object
- Lipa::Bunch
- Defined in:
- lib/lipa/bunch.rb
Overview
Implementation of group description
Instance Method Summary collapse
-
#initialize(parent, attrs = {}, &block) ⇒ Bunch
constructor
A new instance of Bunch.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(parent, attrs = {}, &block) ⇒ Bunch
Returns a new instance of Bunch.
40 41 42 43 44 45 |
# File 'lib/lipa/bunch.rb', line 40 def initialize(parent, attrs = {}, &block) @attrs = attrs @parent = parent instance_eval &block if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method