Class: TypedData::Schema::BytesType
- Inherits:
-
Type
- Object
- Type
- TypedData::Schema::BytesType
show all
- Defined in:
- lib/typed_data/schema/bytes_type.rb
Constant Summary
Constants inherited
from Type
Type::SUPPORTED_LOGICAL_TYPES
Instance Method Summary
collapse
Methods inherited from Type
#initialize, #to_s
Instance Method Details
#accept(visitor, value) ⇒ Object
6
7
8
|
# File 'lib/typed_data/schema/bytes_type.rb', line 6
def accept(visitor, value)
visitor.visit_bytes(self, value)
end
|
#match?(value) ⇒ Boolean
14
15
16
|
# File 'lib/typed_data/schema/bytes_type.rb', line 14
def match?(value)
value.is_a?(String)
end
|
#primitive? ⇒ Boolean
10
11
12
|
# File 'lib/typed_data/schema/bytes_type.rb', line 10
def primitive?
true
end
|