class Regexy::Web::IPv6

Constants

IPV6_NORMAL
IPV6_WITH_PORT

Protected Instance Methods

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