Method: Tap::Declarations#namespace
- Defined in:
- lib/tap/declarations.rb
#namespace(name, &block) ⇒ Object
88 89 90 91 92 93 |
# File 'lib/tap/declarations.rb', line 88 def namespace(name, &block) current_base = declaration_base @declaration_base = File.join(current_base, name.to_s.underscore) yield @declaration_base = current_base end |