Class: Metamagic::PropertyTag
- Defined in:
- lib/metamagic/tags/property_tag.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
Methods inherited from Tag
#<=>, #==, #initialize, #interpolated_values, #method_missing, #remove_prefix?, #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
#sort_order ⇒ Object
7 8 9 |
# File 'lib/metamagic/tags/property_tag.rb', line 7 def sort_order 3 end |
#to_html ⇒ Object
3 4 5 |
# File 'lib/metamagic/tags/property_tag.rb', line 3 def to_html interpolated_values.map { |value| tag(:meta, property: key, content: value) }.join("\n").html_safe.presence end |