Method: Pod::Specification::DSL::RootAttributesAccessors#version

Defined in:
lib/cocoapods-core/specification/root_attribute_accessors.rb

#versionVersion

Returns The version of the Pod.

Returns:

  • (Version)

    The version of the Pod.



30
31
32
33
34
35
36
# File 'lib/cocoapods-core/specification/root_attribute_accessors.rb', line 30

def version
  if root?
    @version ||= Version.new(attributes_hash['version'])
  else
    @version ||= root.version
  end
end