Class: Ruby2html::RailsComponents::LinkTo

Inherits:
BaseComponent show all
Defined in:
lib/gem/ruby2html/rails_components/link_to.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#initialize

Constructor Details

This class inherits a constructor from Ruby2html::RailsComponents::BaseComponent

Instance Method Details

#render(&block) ⇒ Object



6
7
8
# File 'lib/gem/ruby2html/rails_components/link_to.rb', line 6

def render(&block)
  @render.plain(@context.button_to(*@args, **@options, &block))
end