class Releaf::Content::RouterProxy
Attributes
releaf_route[RW]
router[RW]
Public Class Methods
new(router, releaf_route)
click to toggle source
# File lib/releaf/content/router_proxy.rb, line 5 def initialize(router, releaf_route) self.router = router self.releaf_route = releaf_route end
Public Instance Methods
draw(&block)
click to toggle source
# File lib/releaf/content/router_proxy.rb, line 10 def draw(&block) instance_exec(releaf_route, &block) end
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/releaf/content/router_proxy.rb, line 14 def method_missing(method_name, *args, &block) if router.respond_to?(method_name) router.public_send(method_name, *releaf_route.params(*args), &block) else super end end