lib/surrealist/type_helper.rb
# Checks if type is an instance of dry-type
#
# @param [Object] type type to be checked
#
# @return [Boolean] is type an instance of dry-type
Checks if type is an instance of dry-type
Checks if type is an instance of dry - type
def dry_type?(type)
        if type.respond_to?(:primitive) || type.class.name.nil?
          true
        else
          type.class.name =~ DRY_TYPE_CLASS
        end
      end
def dry_type? ( type ) if type . respond_to? ( :primitive ) || type . class . name . nil? true else type . class . name =~ DRY_TYPE_CLASS end end
Checks if type is an instance of dry-type
Checks if type is an instance of dry - type
None
Boolean
type
<not_specific>
<not_specific>
type type to be checked
type type to be checked