Class: Composer::Package::LinkConstraint::SpecificConstraint
- Inherits:
-
BaseConstraint
- Object
- BaseConstraint
- Composer::Package::LinkConstraint::SpecificConstraint
- Defined in:
- lib/composer/package/link_constraint/specific_constraint.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from BaseConstraint
Instance Method Details
#matches(provider) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/composer/package/link_constraint/specific_constraint.rb', line 17 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 |
#pretty_string ⇒ Object
33 34 35 36 |
# File 'lib/composer/package/link_constraint/specific_constraint.rb', line 33 def pretty_string return to_s unless @pretty_string @pretty_string end |
#pretty_string=(pretty_string) ⇒ Object
29 30 31 |
# File 'lib/composer/package/link_constraint/specific_constraint.rb', line 29 def pretty_string=(pretty_string) @prettyString = pretty_string end |