method
is_hexadecimal_literal?
v6.0.0 -
Show latest stable
- Class:
ActiveModel::Validations::NumericalityValidator
is_hexadecimal_literal?(raw_value)private
No documentation available.
# File activemodel/lib/active_model/validations/numericality.rb, line 105
def is_hexadecimal_literal?(raw_value)
/\A0[xX]/.match?(raw_value.to_s)
end