solid-process/solid-result

View on GitHub
lib/solid/result/callable_and_then/config.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Solid::Result
  class CallableAndThen::Config
    attr_accessor :default_method_name_to_call

    def initialize
      self.default_method_name_to_call = :call
    end

    def options
      { default_method_name_to_call: default_method_name_to_call }
    end
  end
end