refactor(champ): add is_type? method
This commit is contained in:
parent
f2b33677f8
commit
bacdedec2e
6 changed files with 19 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue