Class: WLang::Scope::SinatraScope

Inherits:
ObjectScope show all
Defined in:
lib/wlang/scope/sinatra_scope.rb

Instance Attribute Summary

Attributes inherited from WLang::Scope

#parent, #subject

Instance Method Summary collapse

Methods inherited from WLang::Scope

chain, coerce, #evaluate, #initialize, null, #pop, #push, #root, #subjects, #with

Constructor Details

This class inherits a constructor from WLang::Scope

Instance Method Details

#fetch(key, dialect = nil, unfound = nil) ⇒ Object



5
6
7
# File 'lib/wlang/scope/sinatra_scope.rb', line 5

def fetch(key, dialect = nil, unfound = nil)
  find_partial(key, subject) || super
end

#inspectObject Also known as: to_s



9
10
11
# File 'lib/wlang/scope/sinatra_scope.rb', line 9

def inspect
  "SinatraScope"
end