Sha256: 1bb7d44d86a2e23ecde14174f2b8ad1827d3e5f1e58632d82e3144db384ded65
Contents?: true
Size: 460 Bytes
Versions: 18
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true require "much-rails/mixin" module MuchRails; end # MuchRails::CallMethod is a mix-in to implement the `call` # class/instance method pattern. module MuchRails::CallMethod include MuchRails::Mixin mixin_class_methods do def call(*args, &block) new(*args, &block).call end end mixin_instance_methods do def call on_call end def on_call raise NotImplementedError end end end
Version data entries
18 entries across 18 versions & 1 rubygems