Class: Ress::Subdomain
- Inherits:
-
Object
- Object
- Ress::Subdomain
- Defined in:
- lib/ress/subdomain.rb
Defined Under Namespace
Classes: NilSubdomain, RegexpSubdomain, StringSubdomain
Class Method Summary collapse
Class Method Details
.create(subdomain) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ress/subdomain.rb', line 8 def self.create(subdomain) case subdomain when String StringSubdomain.new(subdomain) when Regexp RegexpSubdomain.new(subdomain) else NilSubdomain.new end end |