class ReservedSubdomain

Constants

VERSION

Attributes

subdomain[R]

Public Class Methods

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

Public Instance Methods

reserved?() click to toggle source
# File lib/reserved_subdomain.rb, line 13
def reserved?
  Prefix.new(subdomain).reserved? || Pattern.new(subdomain).reserved? || Literal.new(subdomain).reserved?
end