Class: WLang::HostedLanguage
- Includes:
- Waw::ScopeUtils
- Defined in:
- lib/waw/ext/wlang/hosted_language.rb
Instance Method Summary collapse
-
#variable_missing(name) ⇒ Object
Overrides the original version that always raises an UndefinedVariableError to put waw scoping utilities as low-level variables in all wlang scopes as well as installed resources.
Methods included from Waw::ScopeUtils
#config, #find_kernel_context, #logger, #params, #rack_env, #real_session, #request, #resources, #response, #root_folder, #session
Instance Method Details
#variable_missing(name) ⇒ Object
Overrides the original version that always raises an UndefinedVariableError to put waw scoping utilities as low-level variables in all wlang scopes as well as installed resources.
10 11 12 13 14 15 16 17 18 |
# File 'lib/waw/ext/wlang/hosted_language.rb', line 10 def variable_missing(name) if self.respond_to?(name) self.send(name) elsif resources && resources.has_resource?(name) resources[name] else raise ::WLang::UndefinedVariableError.new(nil, nil, nil, name) end end |