Sha256: 831d97dc19d7429de4370c4e62fe01f8040c509cb62496d81104e9d86962fad6
Contents?: true
Size: 363 Bytes
Versions: 2
Compression:
Stored size: 363 Bytes
Contents
module Crumbs module Dsl class Namespace def initialize(prefix, &block) @prefix = prefix instance_eval(&block) end def controller(name, &block) Controller.new "#{@prefix}/#{name}", &block end def namespace(name, &block) Namespace.new "#{@prefix}/#{name}", &block end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crumbs-5.1.1 | lib/crumbs/dsl/namespace.rb |
crumbs-5.1.0 | lib/crumbs/dsl/namespace.rb |