# File lib/tins/dslkit.rb, line 573 def scope(name = :default) scope_get(name).dup end
# File lib/tins/dslkit.rb, line 561 def scope_block(scope_frame, name = :default) scope_push(scope_frame, name) yield self ensure scope_pop(name) end
# File lib/tins/dslkit.rb, line 569 def scope_get(name = :default) Thread.current[name] ||= [] end
# File lib/tins/dslkit.rb, line 547 def scope_pop(name = :default) scope_get(name).pop scope_get(name).empty? and Thread.current[name] = nil self end
# File lib/tins/dslkit.rb, line 542 def scope_push(scope_frame, name = :default) scope_get(name).push scope_frame self end
Generated with the Darkfish Rdoc Generator 2.