Class: Isolate::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/isolate.rb

Overview

An isolated Gem, with requirement, environment restrictions, and installation options. Internal use only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentsObject

Returns the value of attribute environments

Returns:

  • (Object)

    the current value of environments



13
14
15
# File 'lib/isolate.rb', line 13

def environments
  @environments
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/isolate.rb', line 13

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



13
14
15
# File 'lib/isolate.rb', line 13

def options
  @options
end

#requirementObject

Returns the value of attribute requirement

Returns:

  • (Object)

    the current value of requirement



13
14
15
# File 'lib/isolate.rb', line 13

def requirement
  @requirement
end

Instance Method Details

#matches?(environment) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


14
15
16
# File 'lib/isolate.rb', line 14

def matches? environment # :nodoc:
  environments.empty? || environments.include?(environment)
end