Class: DesignSystem::Generic::Builders::Link
- Defined in:
- lib/design_system/generic/builders/link.rb
Overview
This class provides generic methods to display links on html, including button links.
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helpers::CssHelper
Methods included from Concerns::BrandDerivable
Constructor Details
This class inherits a constructor from DesignSystem::Generic::Builders::Base
Instance Method Details
#render_link_to(name = nil, options = nil, html_options = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/design_system/generic/builders/link.rb', line 8 def render_link_to(name = nil, = nil, = nil, &) ||= {} ||= {} if block_given? type = .delete(:type) [:class] = prep_link_classes(type) else type = .delete(:type) [:class] = prep_link_classes(type) end link_to(name, , , &) end |