class ReservedSubdomain::Prefix
Constants
- PREFIXES
Attributes
subdomain[R]
Public Class Methods
new(subdomain)
click to toggle source
# File lib/reserved_subdomain/prefix.rb, line 26 def initialize(subdomain) @subdomain = subdomain end
Public Instance Methods
reserved?()
click to toggle source
# File lib/reserved_subdomain/prefix.rb, line 30 def reserved? PREFIXES.any? { |prefix| Prefix.new(prefix, subdomain).reserved? } end