Class: FlatKit::FieldType::GuessType
- Inherits:
-
FlatKit::FieldType
- Object
- FlatKit::FieldType
- FlatKit::FieldType::GuessType
- Defined in:
- lib/flat_kit/field_type/guess_type.rb
Overview
GuessType is a field type where we don’t know what type the field is, and it needs to be guessed. This is a sentinel type that doesn’t match any data.
Constant Summary
Constants inherited from FlatKit::FieldType
Class Method Summary collapse
Methods inherited from FlatKit::FieldType
best_guess, candidate_types, weight
Methods included from DescendantTracker
#children, #find_child, #find_children, #inherited
Class Method Details
.coerce(data) ⇒ Object
15 16 17 |
# File 'lib/flat_kit/field_type/guess_type.rb', line 15 def self.coerce(data) CoerceFailure end |
.matches?(data) ⇒ Boolean
11 12 13 |
# File 'lib/flat_kit/field_type/guess_type.rb', line 11 def self.matches?(data) false end |
.type_name ⇒ Object
7 8 9 |
# File 'lib/flat_kit/field_type/guess_type.rb', line 7 def self.type_name self.name end |