Sha256: e56a581feb9eff58457082a499799193e3b99615eb06ccf9af0b9b193e463a0b
Contents?: true
Size: 880 Bytes
Versions: 1
Compression:
Stored size: 880 Bytes
Contents
# frozen_string_literal: true class BCDD::Result::Context module Mixin Factory = BCDD::Result::Mixin::Factory module Methods def Success(type, **value) Success.new(type: type, value: value, subject: self) end def Failure(type, **value) Failure.new(type: type, value: value, subject: self) end end module Addons module Continuable private def Continue(**value) Success.new(type: :continued, value: value, subject: self) end end OPTIONS = { continue: Continuable }.freeze def self.options(config_flags) ::BCDD::Result::Config::Options.addon(map: config_flags, from: OPTIONS) end end end def self.mixin_module Mixin end def self.result_factory ::BCDD::Result::Context end private_class_method :mixin_module, :result_factory end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-0.8.0 | lib/bcdd/result/context/mixin.rb |