module Jsonerino::Helpers

Public Class Methods

alphanumeric?(chr) click to toggle source
# File lib/jsonerino/helpers.rb, line 11
def self.alphanumeric?(chr)
  !chr.match(/^\w+$/).nil?
end
hex?(chr) click to toggle source
# File lib/jsonerino/helpers.rb, line 7
def self.hex?(chr)
  !chr.match(/^\h+$/).nil?
end
numeric?(chr) click to toggle source
# File lib/jsonerino/helpers.rb, line 3
def self.numeric?(chr)
  !chr.match(/^[0-9]$/).nil?
end