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