Class: Ariadne::ViewComponent::HTMLAttrs::AttributesHash

Inherits:
Hash
  • Object
show all
Defined in:
app/lib/ariadne/view_component/html_attrs.rb

Constant Summary collapse

TAG_BUILDER =
ActionView::Helpers::TagHelper::TagBuilder.new(nil)
TAG_OPTIONS =
ActionView::Helpers::TagHelper::TagBuilder.instance_method(:tag_options)

Instance Method Summary collapse

Instance Method Details

#to_html(nested: false) ⇒ Object



13
14
15
16
# File 'app/lib/ariadne/view_component/html_attrs.rb', line 13

def to_html(nested: false)
  # TODO: implement + change usage by @tag nested-attributes
  tag_options(self)&.html_safe # rubocop:disable Rails/OutputSafety
end