# File lib/tins/dslkit.rb, line 618 def scope(name = :default) scope_get(name).dup end
# File lib/tins/dslkit.rb, line 606 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 614 def scope_get(name = :default) Thread.current[name] ||= [] end
# File lib/tins/dslkit.rb, line 592 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 587 def scope_push(scope_frame, name = :default) scope_get(name).push scope_frame self end
Generated with the Darkfish Rdoc Generator 2.