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
16 17 18 |
# File 'lib/isolate.rb', line 16 def environments @environments end |
#name ⇒ Object
Returns the value of attribute name
16 17 18 |
# File 'lib/isolate.rb', line 16 def name @name end |
#options ⇒ Object
Returns the value of attribute options
16 17 18 |
# File 'lib/isolate.rb', line 16 def @options end |
#requirement ⇒ Object
Returns the value of attribute requirement
16 17 18 |
# File 'lib/isolate.rb', line 16 def requirement @requirement end |
Instance Method Details
#matches?(environment) ⇒ Boolean
:nodoc:
17 18 19 |
# File 'lib/isolate.rb', line 17 def matches? environment # :nodoc: environments.empty? || environments.include?(environment) end |
#matches_spec?(spec) ⇒ Boolean
21 22 23 |
# File 'lib/isolate.rb', line 21 def matches_spec? spec name == spec.name and requirement.satisfied_by? spec.version end |