Sha256: c969eb980118e5f18813de607a5e8bec99cd512909320c5e83ab2727f280b03e
Contents?: true
Size: 792 Bytes
Versions: 15
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResultShortSyntax module Concern include Support::Concern class_methods do ## # @internal # NOTE: Delegates to `result` instead of aliasing in order to have an ability # to use the same RSpec stubs for short and usual syntax. # # For example: # # allow(Service).to receive(:result).with(foo: :bar).and_call_original # # works for both `Service.result(foo: :bar)` and `Service[foo: :bar]`. # def [](...) result(...) end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems