Method: Pod::Specification::DSL::AttributeSupport#attribute

Defined in:
lib/cocoapods-core/specification/dsl/attribute_support.rb

#attribute(name, options = {}) ⇒ void

This method returns an undefined value.

Defines an attribute for the extended class.

Regular attributes in general support inheritance and multi-platform values, so resolving them for a given specification is not trivial.

Parameters:

  • name (Symbol, String)

    The name of the attribute.

  • options (Hash) (defaults to: {})

    The options used to initialize the attribute.



47
48
49
# File 'lib/cocoapods-core/specification/dsl/attribute_support.rb', line 47

def attribute(name, options = {})
  store_attribute(name, options)
end