class ReservedSubdomain::Pattern

Constants

PATTERNS

Attributes

subdomain[R]

Public Class Methods

new(subdomain) click to toggle source
# File lib/reserved_subdomain/pattern.rb, line 11
def initialize(subdomain)
  @subdomain = subdomain
end

Public Instance Methods

reserved?() click to toggle source
# File lib/reserved_subdomain/pattern.rb, line 15
def reserved?
  PATTERNS.any? { |pattern| subdomain =~ pattern }
end