Sha256: 0994ec01ff9bf1bdf046f909a270e79697b2e9abc907d901775f3534b344a5cb

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 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-4.0.0.1 lib/crumbs/proxy.rb
crumbs-4.0.0.0 lib/crumbs/proxy.rb