Method: DatawireQuarkCore.cast

Defined in:
lib/datawire-quark-core.rb

.cast(value, &block) ⇒ Object



1029
1030
1031
1032
1033
1034
1035
# File 'lib/datawire-quark-core.rb', line 1029

def self.cast(value, &block)
  # For now there is no easy way to check in Ruby that Quark class C is
  # subclass of of Quark class B, so don't check anything until that's fixed.
  # The correct way to do so would be via reflect.Class.hasInstance, probably,
  # but that doesn't support interfaces yet.
  value
end