Sha256: 510109dc587abe03c8575b935e61482d462326446d56189a54a5794b6b1a7ba0

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

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 EmptyConstraint < BaseConstraint
        def matches(provider)
          true
        end

        def pretty_string=(pretty_string)
           @pretty_string = pretty_string
        end

        def pretty_string
          return to_s unless @pretty_string
          @pretty_string
        end

        def to_s
          '[]'
        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/empty_constraint.rb
php-composer-0.2.0 lib/composer/package/link_constraint/empty_constraint.rb