Class: TypedData::Schema::StringType
- Inherits:
-
Type
- Object
- Type
- TypedData::Schema::StringType
show all
- Defined in:
- lib/typed_data/schema/string_type.rb
Constant Summary
collapse
- SUPPORTED_LOGICAL_TYPES =
%w[uuid]
Instance Method Summary
collapse
Methods inherited from Type
#accept, #initialize, #to_s
Instance Method Details
#match?(value) ⇒ Boolean
12
13
14
|
# File 'lib/typed_data/schema/string_type.rb', line 12
def match?(value)
value.is_a?(String)
end
|
#primitive? ⇒ Boolean
8
9
10
|
# File 'lib/typed_data/schema/string_type.rb', line 8
def primitive?
true
end
|