Class: Composer::Package::LinkConstraint::EmptyConstraint

Inherits:
BaseConstraint
  • Object
show all
Defined in:
lib/composer/package/link_constraint/empty_constraint.rb

Instance Method Summary collapse

Instance Method Details

#matches(provider) ⇒ Object



16
17
18
# File 'lib/composer/package/link_constraint/empty_constraint.rb', line 16

def matches(provider)
  true
end

#pretty_stringObject



24
25
26
27
# File 'lib/composer/package/link_constraint/empty_constraint.rb', line 24

def pretty_string
  return to_s unless @pretty_string
  @pretty_string
end

#pretty_string=(pretty_string) ⇒ Object



20
21
22
# File 'lib/composer/package/link_constraint/empty_constraint.rb', line 20

def pretty_string=(pretty_string)
   @pretty_string = pretty_string
end

#to_sObject



29
30
31
# File 'lib/composer/package/link_constraint/empty_constraint.rb', line 29

def to_s
  '[]'
end