lib/dry/struct/sum.rb in dry-struct-1.2.0 vs lib/dry/struct/sum.rb in dry-struct-1.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'dry/types/sum' require 'dry/types/printer' module Dry class Struct @@ -10,9 +12,10 @@ def call(input) left.try_struct(input) do right.try_struct(input) { super } end end + # @param [Hash{Symbol => Object},Dry::Struct] input # @yieldparam [Dry::Types::Result::Failure] failure # @yieldreturn [Dry::Types::ResultResult] # @return [Dry::Types::Result] def try(input)