Class: Metamagic::LinkTag
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
Methods inherited from Tag
#<=>, #==, #initialize, #interpolated_values, #method_missing, #remove_prefix?, #sort_order, #template
Constructor Details
This class inherits a constructor from Metamagic::Tag
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Metamagic::Tag
Instance Method Details
permalink #to_html ⇒ Object
[View source]
3 4 5 |
# File 'lib/metamagic/tags/link_tag.rb', line 3 def to_html interpolated_values.map { |value| tag(:link, rel: key, href: value) }.join("\n").html_safe.presence end |