Method: XDR::Concerns::ConvertsToXDR#valid?

Defined in:
lib/xdr/concerns/converts_to_xdr.rb

#valid?(value) ⇒ Boolean

Returns true if the value provided is compatible with this serializer class

Parameters:

  • value (Object)

    the value to test

Returns:

  • (Boolean)

    true if valid, false otherwise

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/xdr/concerns/converts_to_xdr.rb', line 31

def valid?(value)
  raise NotImplementedError, "implement in including class"
end