Class: Isolate::Entry
- Inherits:
-
Struct
- Object
- Struct
- Isolate::Entry
- Defined in:
- lib/isolate.rb
Overview
An isolated Gem, with requirement, environment restrictions, and installation options. Internal use only.
Instance Attribute Summary collapse
-
#environments ⇒ Object
Returns the value of attribute environments.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#requirement ⇒ Object
Returns the value of attribute requirement.
Instance Method Summary collapse
Instance Attribute Details
#environments ⇒ Object
Returns the value of attribute environments
14 15 16 |
# File 'lib/isolate.rb', line 14 def environments @environments end |
#name ⇒ Object
Returns the value of attribute name
14 15 16 |
# File 'lib/isolate.rb', line 14 def name @name end |
#options ⇒ Object
Returns the value of attribute options
14 15 16 |
# File 'lib/isolate.rb', line 14 def @options end |
#requirement ⇒ Object
Returns the value of attribute requirement
14 15 16 |
# File 'lib/isolate.rb', line 14 def requirement @requirement end |
Instance Method Details
#matches?(environment) ⇒ Boolean
:nodoc:
15 16 17 |
# File 'lib/isolate.rb', line 15 def matches? environment # :nodoc: environments.empty? || environments.include?(environment) end |
#matches_spec?(spec) ⇒ Boolean
19 20 21 |
# File 'lib/isolate.rb', line 19 def matches_spec? spec self.name == spec.name and self.requirement.satisfied_by? spec.version end |