Class: ReservedSubdomain::Prefix
- Inherits:
-
Object
- Object
- ReservedSubdomain::Prefix
- Defined in:
- lib/reserved_subdomain/prefix.rb
Defined Under Namespace
Classes: Prefix
Constant Summary collapse
- PREFIXES =
%w[ db dc dev dns ftp host mail mx ns ntp server smtp static support test vpn web www ].freeze
Instance Attribute Summary collapse
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
Instance Method Summary collapse
-
#initialize(subdomain) ⇒ Prefix
constructor
A new instance of Prefix.
- #reserved? ⇒ Boolean
Constructor Details
#initialize(subdomain) ⇒ Prefix
Returns a new instance of Prefix.
26 27 28 |
# File 'lib/reserved_subdomain/prefix.rb', line 26 def initialize(subdomain) @subdomain = subdomain end |
Instance Attribute Details
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
24 25 26 |
# File 'lib/reserved_subdomain/prefix.rb', line 24 def subdomain @subdomain end |