Class: Pantry::Chef::SyncCookbooks::FileAndReceiverInfo
- Inherits:
-
Object
- Object
- Pantry::Chef::SyncCookbooks::FileAndReceiverInfo
- Includes:
- Forwardable
- Defined in:
- lib/pantry/chef/sync_cookbooks.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, receiver_info) ⇒ FileAndReceiverInfo
constructor
A new instance of FileAndReceiverInfo.
- #method_missing(*args, &block) ⇒ Object
Constructor Details
#initialize(name, receiver_info) ⇒ FileAndReceiverInfo
Returns a new instance of FileAndReceiverInfo.
25 26 27 28 |
# File 'lib/pantry/chef/sync_cookbooks.rb', line 25 def initialize(name, receiver_info) @name = name @receiver_info = receiver_info end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
30 31 32 |
# File 'lib/pantry/chef/sync_cookbooks.rb', line 30 def method_missing(*args, &block) @receiver_info.send(*args, &block) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/pantry/chef/sync_cookbooks.rb', line 23 def name @name end |