class ShouldaRouting::Namespaces::Base
Attributes
block[RW]
current[RW]
options[RW]
Public Class Methods
new(*args, &block)
click to toggle source
# File lib/shoulda_routing/namespaces/base.rb, line 7 def initialize *args, &block @options = args.extract_options! @current = args @block = block end
Public Instance Methods
test!()
click to toggle source
# File lib/shoulda_routing/namespaces/base.rb, line 13 def test! Routes::STACK.namespaces.push(current) DSL.instance_eval(&block) if block Routes::STACK.namespaces.pop end