class Regexy::Web::IPv4

Constants

IPV4_NORMAL
IPV4_WITH_PORT

Protected Instance Methods

regexp_for(mode) click to toggle source
# File lib/regexy/web/ip.rb, line 11
def regexp_for(mode)
  case mode
  when :normal    then IPV4_NORMAL
  when :with_port then IPV4_WITH_PORT
  else nil
  end
end