class ViewObject
include Rails.application.routes.url_helpers
include ActionView::Helpers
include ActionView::Context
delegate :tag, :concat, :link_to, to: :view
def description
tag.p(class: "description") do
concat "Text inside paragraph can have"
concat link_to("Link", "https://JuanitoFatas.com")
concat " link "
concat tag.span("and Span")
end
end
end
# view_object = ViewObject.new
# <%= view_object.description %>