Sha256: 1703da57ee588c172aa24d699b67c26940e69ddd53f1faf2eb6d747c204bea90
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
module Rack::App::SingletonMethods::Hooks def before(&block) @before_hooks ||= [] unless block.nil? @before_hooks << ::Rack::App::Hook.new(class: self, &block) end @before_hooks end def after(&block) @after_hooks ||= [] unless block.nil? @after_hooks << ::Rack::App::Hook.new(class: self, &block) end @after_hooks end end
Version data entries
5 entries across 5 versions & 1 rubygems