lib/global_types/property_hash.rb
def cast(value)
      Dry::Types["coercible.hash"].try(value).to_monad.value_or({}).then do |v|
        ::PropertyHash.new v
      end
    end
# Type cast a value from user input (e.g. from a setter).
#
# @param [Hash, #to_h] value
# @return [::PropertyHash]
Type cast a value from user input .
Type cast a value from user input .
def cast(value)
      Dry::Types["coercible.hash"].try(value).to_monad.value_or({}).then do |v|
        ::PropertyHash.new v
      end
    end
def cast ( value ) Dry :: Types [ "coercible.hash" ] . try ( value ) . to_monad . value_or ( { } ) . then do | v | :: PropertyHash . new v end end
Type cast a value from user input (e.g.
Type cast a value from user input ( e . g .
None
::PropertyHash
value
None