refactor(champ): add is_type? method

This commit is contained in:
Paul Chavard 2024-11-06 22:29:59 +01:00
parent f2b33677f8
commit bacdedec2e
No known key found for this signature in database
6 changed files with 19 additions and 25 deletions

View file

@ -24,7 +24,7 @@ class Columns::ChampColumn < Column
return if champ.nil?
# nominal case
if @tdc_type == champ.last_write_type_champ
if champ.is_type?(@tdc_type)
typed_value(champ)
else
cast_value(champ)