Class: Typedocs::TypeSpec
- Inherits:
-
Object
- Object
- Typedocs::TypeSpec
- Defined in:
- lib/typedocs/type_spec.rb
Direct Known Subclasses
Any, Array, ArrayAsStruct, HashType, HashValue, Named, Nil, Or, TypeIsA, UserDefinedType, Value
Defined Under Namespace
Classes: Any, Array, ArrayAsStruct, HashType, HashValue, Named, Nil, Or, TypeIsA, UserDefinedType, Value, Void
Instance Method Summary collapse
Instance Method Details
#error_message_for(obj) ⇒ Object
2 3 4 |
# File 'lib/typedocs/type_spec.rb', line 2 def (obj) "Expected #{self.to_source}, but #{obj.inspect}" end |