Method: StyleScript::Scope#find
- Defined in:
- lib/style_script/scope.rb
#find(name, remote = false) ⇒ Object
Look up a variable in lexical scope, or declare it if not found.
20 21 22 23 24 25 |
# File 'lib/style_script/scope.rb', line 20 def find(name, remote=false) found = check(name) return found if found || remote @variables[name.to_sym] = :var found end |