class ActiveModel::Type::Integer

def serializable?(value)

Experimental RBS support (using type sampling data from the type_fusion project).

def serializable?: ((Integer | String) value) -> true

This signature was generated using 4 samples from 1 application.

def serializable?(value)
  cast_value = cast(value)
  in_range?(cast_value) || begin
    yield cast_value if block_given?
    false
  end
end