Class: Ress::Subdomain::NilSubdomain
- Inherits:
-
Object
- Object
- Ress::Subdomain::NilSubdomain
- Defined in:
- lib/ress/subdomain.rb
Instance Method Summary collapse
Instance Method Details
#matches?(subdomain) ⇒ Boolean
20 21 22 |
# File 'lib/ress/subdomain.rb', line 20 def matches?(subdomain) subdomain.empty? end |
#url(protocol, fullpath, subdomain) ⇒ Object
24 25 26 27 |
# File 'lib/ress/subdomain.rb', line 24 def url(protocol, fullpath, subdomain) fullpath = fullpath[(subdomain.length + 1)..-1] unless subdomain.empty? "#{protocol}#{fullpath}" end |