lib/rubygems/dependency.rb
##
# Valid dependency types.
#--
# When this list is updated, be sure to change
# Gem::Specification::CURRENT_SPECIFICATION_VERSION as well.
#
# REFACTOR: This type of constant, TYPES, indicates we might want
# two classes, used via inheritance or duck typing.
Valid dependency types.
When this list is updated, be sure to change
Gem::Specification::CURRENT_SPECIFICATION_VERSION as well.

This type of constant, TYPES, indicates we might want
two classes, used via inheritance or duck typing.
Valid dependency types . When this list is updated be sure to change Gem :: Specification :: CURRENT_SPECIFICATION_VERSION as well . This type of constant TYPES indicates we might want two classes used via inheritance or duck typing .
def identity
    if prerelease?
      if specific?
        :complete
      else
        :abs_latest
      end
    elsif latest_version?
      :latest
    else
      :released
    end
  end
def identity if prerelease? if specific? :complete else :abs_latest end elsif latest_version? :latest else :released end end
Valid dependency types.
Valid dependency types .