Sha256: b6f66bfc2b7f1aae3e2c7068e9f6988e80d3d5962ceaee05e7bf9d50b142a851
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
module Raisin class Namespace include Exposable attr_reader :path, :methods, :filters def initialize(path) @path = path @methods = [] @filters = { before: [], after: [], around: [] } end def add(method) @methods << method end def filter(type, *args, &block) @filters[type] << [args.first, block] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
raisin-0.0.2 | lib/raisin/namespace.rb |
raisin-0.0.1 | lib/raisin/namespace.rb |