Class: GlooLang::App::EngineContext

Inherits:
Object
  • Object
show all
Defined in:
lib/gloo_lang/app/engine_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_lang/app/engine_context.rb', line 16

def initialize( params = [], platform=nil, log=nil, user_root=nil )
  @params = params
  @platform = platform ? platform : Platform.new
  @log = log ? log : Log
  @user_root = user_root
end

Instance Attribute Details

#logObject

Returns the value of attribute log.



11
12
13
# File 'lib/gloo_lang/app/engine_context.rb', line 11

def log
  @log
end

#paramsObject

Returns the value of attribute params.



11
12
13
# File 'lib/gloo_lang/app/engine_context.rb', line 11

def params
  @params
end

#platformObject

Returns the value of attribute platform.



11
12
13
# File 'lib/gloo_lang/app/engine_context.rb', line 11

def platform
  @platform
end

#user_rootObject

Returns the value of attribute user_root.



11
12
13
# File 'lib/gloo_lang/app/engine_context.rb', line 11

def user_root
  @user_root
end