Class: Pageflow::Admin::IconLinkTo

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/icon_link_to.rb

Instance Method Summary collapse

Methods inherited from ViewComponent

builder_method

Instance Method Details

#build(path, options = {}) ⇒ Object



6
7
8
# File 'app/views/components/pageflow/admin/icon_link_to.rb', line 6

def build(path, options = {})
  text_node(link_to(tooltip_span(options), path, class: options[:class]))
end

#tag_nameObject



10
11
12
# File 'app/views/components/pageflow/admin/icon_link_to.rb', line 10

def tag_name
  'span'
end