Sha256: 7b92c68f925177e65ebd061625f637381d23cae9e5115dd46e1478ced48f4b23
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# # This file was ported to ruby from Composer php source code file. # Original Source: Composer\Package\AliasPackage.php # # (c) Nils Adermann <naderman@naderman.de> # Jordi Boggiano <j.boggiano@seld.be> # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. # module Composer module Package module LinkConstraint class SpecificConstraint < BaseConstraint def matches(provider) if provider.is_a?(MultiConstraint) # turn matching around to find a match return provider.matches(self) elsif provider.is_a?(SpecificConstraint) return match_specific(provider) end true end def pretty_string=(pretty_string) @prettyString = pretty_string end def pretty_string return to_s unless @pretty_string @pretty_string end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
php-composer-0.3.0 | lib/composer/package/link_constraint/specific_constraint.rb |
php-composer-0.2.0 | lib/composer/package/link_constraint/specific_constraint.rb |