Sha256: c40266bcc50ba119723ffc1988f6dfcea58dbd5445b5c84dfa6ff3aa2d18fee5
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
# frozen_string_literal: true module Fluxo def self.config @config ||= Config.new yield(@config) if block_given? @config end class Config attr_reader :error_handlers # When set to true, the result of a falsey operation will be wrapped in a Failure. attr_accessor :wrap_falsey_result # When set to true, the result of a truthy operation will be wrapped in a Success. attr_accessor :wrap_truthy_result # When set to true, the operation will not validate the transient_attributes defition during the flow step execution. attr_accessor :sloppy_transient_attributes # When set to true, the operation will not validate attributes definition before calling the operation. attr_accessor :sloppy_attributes def initialize @error_handlers = [] @wrap_falsey_result = false @wrap_truthy_result = false @sloppy_transient_attributes = false @sloppy_attributes = false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluxo-0.1.0 | lib/fluxo/config.rb |