module Google::Protobuf::Internal::TypeSafety
Public Instance Methods
Source
# File lib/google/protobuf/ffi/internal/type_safety.rb, line 14 def to_native(value, ctx = nil) if value.kind_of?(self) or value.nil? super else raise TypeError.new "Expected a kind of #{name}, was #{value.class}" end end
Calls superclass method