Sha256: b429b85850ad83aa983821b0e44509cc071300de77926f162222df188d3a2fe5
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
# frozen_string_literal: true module Logux class ActionWatcher def self.call(options = {}, &block) new(options).call(&block) end attr_reader :options def initialize(options = {}) raise ArgumentError, :options unless options.is_a?(Hash) @options = options end def call yield end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logux-rack-0.1.0 | lib/logux/action_watcher.rb |