class Gambiarra::Route
Attributes
last[R]
params[RW]
path[R]
view[R]
Public Class Methods
new(path, to:, with: {})
click to toggle source
# File lib/gambiarra/route.rb, line 6 def initialize(path, to:, with: {}) @path = path @view = to @params = with end
Public Instance Methods
respond(**other_params)
click to toggle source
# File lib/gambiarra/route.rb, line 12 def respond(**other_params) view.respond(**params, **other_params) end