Class: Ukiryu::ExecutableLocator::DiscoveryContext Private

Inherits:
Object
  • Object
show all
Defined in:
lib/ukiryu/executable_locator.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Encapsulates the discovery environment details

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(platform) ⇒ DiscoveryContext

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DiscoveryContext.



84
85
86
87
88
# File 'lib/ukiryu/executable_locator.rb', line 84

def initialize(platform)
  @platform = platform
  @shell_sym = Shell.detect
  @shell_class = Shell.class_for(@shell_sym)
end

Instance Attribute Details

#platformObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



82
83
84
# File 'lib/ukiryu/executable_locator.rb', line 82

def platform
  @platform
end

#shell_classObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



82
83
84
# File 'lib/ukiryu/executable_locator.rb', line 82

def shell_class
  @shell_class
end

#shell_symObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



82
83
84
# File 'lib/ukiryu/executable_locator.rb', line 82

def shell_sym
  @shell_sym
end