Class: TrainPlugins::Pwsh::Transport
- Inherits:
-
Object
- Object
- TrainPlugins::Pwsh::Transport
- Defined in:
- lib/train-pwsh/transport.rb
Instance Method Summary collapse
-
#connection(_instance_opts = nil) ⇒ Object
The options passed to this are undocumented and rarely used.
Instance Method Details
#connection(_instance_opts = nil) ⇒ Object
The options passed to this are undocumented and rarely used.
28 29 30 31 32 33 34 35 |
# File 'lib/train-pwsh/transport.rb', line 28 def connection(_instance_opts = nil) # Typical practice is to cache the connection as an instance variable. # Do what makes sense for your platform. # @options here is the parsed options that the calling # app handed to us at process invocation. See the Connection class # for more details. @connection ||= TrainPlugins::Pwsh::Connection.new(@options) end |