Ruby Ramaze是否有一个类似Sinatra的;“之前/之后”;钩子?
想知道Ramaze是否有像Sinatra这样的钩子。有人知道吗?谢谢 他们告诉你确实如此。例如:Ruby Ramaze是否有一个类似Sinatra的;“之前/之后”;钩子?,ruby,ramaze,Ruby,Ramaze,想知道Ramaze是否有像Sinatra这样的钩子。有人知道吗?谢谢 他们告诉你确实如此。例如: before(:index, :other) do puts 'Executed before specific actions only.' end after(:index, :other) do puts 'Executed after specific actions only.' end
before(:index, :other) do
puts 'Executed before specific actions only.'
end
after(:index, :other) do
puts 'Executed after specific actions only.'
end