Sha256: 46cd2312e10b30a29f187699cfc4b2db1e14dac740026eb488239fba9dd6c852
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
module Crumbs class Proxy def initialize(&block) instance_eval(&block) end def namespace(*args, &block) Dsl::Namespace.new(*args, &block) end def controller(*args, &block) Dsl::Controller.new(*args, &block) end def crumb(action, name=nil, &block) Crumbs.definitions.add action, (block_given? ? block : name) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crumbs-5.1.1 | lib/crumbs/proxy.rb |
crumbs-5.1.0 | lib/crumbs/proxy.rb |