Sha256: 66efa2c1f1c073c8fa89652877f7749da51f3164f92f59876a725a352d26dab1
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
module Crumbs class Proxy def initialize(&block) instance_eval &block end %w( namespace controller ).each do |name| define_method name do |*args, &block| DSL.const_get(name.to_s.classify).new(*args, &block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crumbs-2.1.2 | lib/crumbs/proxy.rb |
crumbs-2.1.1 | lib/crumbs/proxy.rb |