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
-
#matches?(environment) ⇒ Boolean
:nodoc:.
Instance Attribute Details
#environments ⇒ Object
Returns the value of attribute environments
13 14 15 |
# File 'lib/isolate.rb', line 13 def environments @environments end |
#name ⇒ Object
Returns the value of attribute name
13 14 15 |
# File 'lib/isolate.rb', line 13 def name @name end |
#options ⇒ Object
Returns the value of attribute options
13 14 15 |
# File 'lib/isolate.rb', line 13 def @options end |
#requirement ⇒ Object
Returns the value of attribute requirement
13 14 15 |
# File 'lib/isolate.rb', line 13 def requirement @requirement end |
Instance Method Details
#matches?(environment) ⇒ Boolean
:nodoc:
14 15 16 |
# File 'lib/isolate.rb', line 14 def matches? environment # :nodoc: environments.empty? || environments.include?(environment) end |