Class: Pantry::Chef::SyncCookbooks::FileAndReceiverInfo

Inherits:
Object
  • Object
show all
Includes:
Forwardable
Defined in:
lib/pantry/chef/sync_cookbooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



23
24
25
# File 'lib/pantry/chef/sync_cookbooks.rb', line 23

def name
  @name
end