Module: RateBeer::Beer

Included in:
Beer
Defined in:
lib/ratebeer/beer.rb,
lib/ratebeer/beer/alias.rb

Defined Under Namespace

Classes: Alias, Beer

Instance Method Summary collapse

Instance Method Details

#redirect_if_alias(doc) ⇒ Object

Redirects a beer if it is an alias.



9
10
11
# File 'lib/ratebeer/beer/alias.rb', line 9

def redirect_if_alias(doc)
  Alias.new(doc).try_redirect
end