Class: ContentBlockTools::Presenters::FieldPresenters::Contact::EmailAddressPresenter
- Inherits:
-
BasePresenter
- Object
- BasePresenter
- ContentBlockTools::Presenters::FieldPresenters::Contact::EmailAddressPresenter
- Defined in:
- lib/content_block_tools/presenters/field_presenters/contact/email_address_presenter.rb
Constant Summary
Constants inherited from BasePresenter
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
Methods inherited from BasePresenter
Constructor Details
This class inherits a constructor from ContentBlockTools::Presenters::FieldPresenters::BasePresenter
Instance Method Details
#render ⇒ Object
6 7 8 |
# File 'lib/content_block_tools/presenters/field_presenters/contact/email_address_presenter.rb', line 6 def render content_tag(:a, field, class: "govuk-link", href: "mailto:#{field}") end |