Class: Yarrow::Schema::Types::Instance

Inherits:
TypeClass
  • Object
show all
Defined in:
lib/yarrow/schema/types.rb

Instance Attribute Summary

Attributes inherited from TypeClass

#accepts, #unit

Instance Method Summary collapse

Methods inherited from TypeClass

#accept, #cast, #check_instance_of!, #check_kind_of!, #check_respond_to_all!, #check_respond_to_any!, #coerce, #initialize, of, #should_coerce?

Constructor Details

This class inherits a constructor from Yarrow::Schema::Types::TypeClass

Instance Method Details

#check(input) ⇒ Object



85
86
87
88
# File 'lib/yarrow/schema/types.rb', line 85

def check(input)
  check_instance_of!(input)
  input
end