Class: Metamagic::PropertyTag

Inherits:
Tag
  • Object
show all
Defined in:
lib/metamagic/tags/property_tag.rb

Direct Known Subclasses

OpenGraphTag

Instance Attribute Summary

Attributes inherited from Tag

#context, #key, #value

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_orderObject



7
8
9
# File 'lib/metamagic/tags/property_tag.rb', line 7

def sort_order
  3
end

#to_htmlObject



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