Class: Hospodar::Builder::Strategies::Translate::Tracer
- Inherits:
-
Struct
- Object
- Struct
- Hospodar::Builder::Strategies::Translate::Tracer
- Defined in:
- lib/hospodar/builder/strategies/translate.rb
Overview
Collects method calls in a given block
Instance Attribute Summary collapse
-
#yielder ⇒ Object
Returns the value of attribute yielder.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *attrs) ⇒ Object
10 11 12 |
# File 'lib/hospodar/builder/strategies/translate.rb', line 10 def method_missing(method_name, *attrs) yielder << [method_name, attrs.first] end |
Instance Attribute Details
#yielder ⇒ Object
Returns the value of attribute yielder
9 10 11 |
# File 'lib/hospodar/builder/strategies/translate.rb', line 9 def yielder @yielder end |
Instance Method Details
#respond_to_missing? ⇒ Boolean
14 15 16 |
# File 'lib/hospodar/builder/strategies/translate.rb', line 14 def respond_to_missing? true end |