Module: Castanet::Testing::Namespacing

Included in:
CallbackServerTasks, JasigServerTasks
Defined in:
lib/castanet/testing/namespacing.rb

Instance Method Summary collapse

Instance Method Details

#namespaces(chain, &block) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/castanet/testing/namespacing.rb', line 5

def namespaces(chain, &block)
  if chain.empty?
    block.call
  else
    namespace chain.shift do
      namespaces(chain, &block)
    end
  end
end