lib/cocoapods-core/specification/dsl/attribute_support.rb
# Defines a root attribute for the extended class.
#
# Root attributes make sense only in root specification, they never are
# multi-platform, they don't have inheritance, and they never have a
# default value.
#
# @param  [String] name
#         The name of the attribute.
#
# @param  [Hash] options
#         The options used to initialize the attribute.
#
# @return [void]
#
Defines a root attribute for the extended class.
Root attributes make sense only in root specification, they never are
multi-platform, they don't have inheritance, and they never have a
default value.
Defines a root attribute for the extended class . Root attributes make sense only in root specification they never are multi - platform they don ' t have inheritance and they never have a default value .
def root_attribute(name, options = {})
          options[:root_only] = true
          options[:multi_platform] = false
          store_attribute(name, options)
        end
def root_attribute ( name , options = { } ) options [ :root_only ] = true options [ :multi_platform ] = false store_attribute ( name , options ) end
Defines a root attribute for the extended class.
Defines a root attribute for the extended class .
None
void
name
<not_specific>
options
<not_specific>
<not_specific>
options The options used to initialize the attribute.
options The options used to initialize the attribute .