Module: XDR::Concerns::IntegerConverter

Included in:
Hyper, Int, UnsignedHyper, UnsignedInt
Defined in:
lib/xdr/concerns/integer_converter.rb

Instance Method Summary collapse

Instance Method Details

#valid?(val) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/xdr/concerns/integer_converter.rb', line 2

def valid?(val)
  val.is_a?(Integer)
end