module PoiseApplicationPython::AppMixin::Resource
A helper mixin for Python application resources.
Public Instance Methods
app_state_environment_python()
click to toggle source
A merged hash of environment variables for both the application state and parent python.
@return [Hash<String, String>]
# File lib/poise_application_python/app_mixin.rb, line 55 def app_state_environment_python env = app_state_environment env = env.merge(parent_python.python_environment) if parent_python env end
app_state_python(python=Poise::NOT_PASSED)
click to toggle source
@attribute app_state_python
The application-level Python parent. @return [PoisePython::Resources::PythonRuntime::Resource, nil]
# File lib/poise_application_python/app_mixin.rb, line 44 def app_state_python(python=Poise::NOT_PASSED) unless python == Poise::NOT_PASSED app_state[:python] = python end app_state[:python] end