Sha256: a9ecbca2088cddf4c6c79432d3f8897b70a1db9352476d122e40aee923359a5c
Contents?: true
Size: 351 Bytes
Versions: 9
Compression:
Stored size: 351 Bytes
Contents
module BBK module App module Domains class ByBlock attr_reader :name def initialize(name, &block) raise ArgumentError.new('no block') unless block_given? @name = name @block = block end def call(route) @block.call(route) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems