module Pod::DyInstaller::InstallationOptions::Mixin::ClassMethods

Public Instance Methods

delegate_installation_option_attributes!() click to toggle source

Delegates the installation options attributes directly to {#installation_options}.

@return [Void]

Calls superclass method
# File lib/pod/installer/installation_options.rb, line 133
def delegate_installation_option_attributes!
  define_method(:respond_to_missing?) do |name, *args|
    installation_options.respond_to?(name, *args) || super
  end

  define_method(:method_missing) do |name, *args, &blk|
    if installation_options.respond_to?(name)
      installation_options.send(name, *args, &blk)
    else
      super
    end
  end
end
delegate_installation_options(&blk) click to toggle source

Delegates the creation of {#installation_options} to the `Podfile` returned by the given block.

@param blk a block that returns the `Podfile` to create

installation options from.

@return [Void]

# File lib/pod/installer/installation_options.rb, line 122
def delegate_installation_options(&blk)
  define_method(:installation_options) do
    @installation_options ||= InstallationOptions.from_podfile(instance_eval(&blk))
  end
end