Class: Ukiryu::ExecutableLocator::DiscoveryContext Private
- Inherits:
-
Object
- Object
- Ukiryu::ExecutableLocator::DiscoveryContext
- 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
- #platform ⇒ Object readonly private
- #shell_class ⇒ Object readonly private
- #shell_sym ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(platform) ⇒ DiscoveryContext
constructor
private
A new instance of DiscoveryContext.
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
#platform ⇒ Object (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_class ⇒ Object (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_sym ⇒ Object (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 |