Class: Cheffish::ChefRun::EventSink
- Inherits:
-
Object
- Object
- Cheffish::ChefRun::EventSink
- Defined in:
- lib/cheffish/chef_run.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize ⇒ EventSink
constructor
A new instance of EventSink.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize ⇒ EventSink
Returns a new instance of EventSink.
131 132 133 |
# File 'lib/cheffish/chef_run.rb', line 131 def initialize @events = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
137 138 139 |
# File 'lib/cheffish/chef_run.rb', line 137 def method_missing(method, *args) @events << [ method, *args ] end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
135 136 137 |
# File 'lib/cheffish/chef_run.rb', line 135 def events @events end |