Class: ContentBlockTools::Presenters::FieldPresenters::Contact::EmailAddressPresenter

Inherits:
BasePresenter
  • Object
show all
Defined in:
lib/content_block_tools/presenters/field_presenters/contact/email_address_presenter.rb

Constant Summary

Constants inherited from BasePresenter

BasePresenter::BASE_TAG_TYPE

Instance Attribute Summary

Attributes inherited from BasePresenter

#field

Instance Method Summary collapse

Methods inherited from BasePresenter

#initialize

Constructor Details

This class inherits a constructor from ContentBlockTools::Presenters::FieldPresenters::BasePresenter

Instance Method Details

#renderObject



6
7
8
# File 'lib/content_block_tools/presenters/field_presenters/contact/email_address_presenter.rb', line 6

def render
  (:a, field, class: "govuk-link", href: "mailto:#{field}")
end