Class: Gloo::App::EngineContext
- Inherits:
-
Object
- Object
- Gloo::App::EngineContext
- Defined in:
- lib/gloo/app/engine_context.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
-
#params ⇒ Object
Returns the value of attribute params.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#user_root ⇒ Object
Returns the value of attribute user_root.
Instance Method Summary collapse
-
#initialize(params = [], platform = nil, log = nil, user_root = nil) ⇒ EngineContext
constructor
Create the context, supplying defaults where relevant.
Constructor Details
#initialize(params = [], platform = nil, log = nil, user_root = nil) ⇒ EngineContext
Create the context, supplying defaults where relevant.
16 17 18 19 20 21 |
# File 'lib/gloo/app/engine_context.rb', line 16 def initialize( params = [], platform=nil, log=nil, user_root=nil ) @params = params @platform = platform ? platform : Gloo::App::Platform.new @log = log ? log : Gloo::App::Log @user_root = user_root end |
Instance Attribute Details
#log ⇒ Object
Returns the value of attribute log.
11 12 13 |
# File 'lib/gloo/app/engine_context.rb', line 11 def log @log end |
#params ⇒ Object
Returns the value of attribute params.
11 12 13 |
# File 'lib/gloo/app/engine_context.rb', line 11 def params @params end |
#platform ⇒ Object
Returns the value of attribute platform.
11 12 13 |
# File 'lib/gloo/app/engine_context.rb', line 11 def platform @platform end |
#user_root ⇒ Object
Returns the value of attribute user_root.
11 12 13 |
# File 'lib/gloo/app/engine_context.rb', line 11 def user_root @user_root end |