Class: Metanol::Meta::OpenGraph
- Defined in:
- lib/metanol/meta/open_graph.rb
Constant Summary
Constants inherited from Base
Base::ERR_FILTERS_WRONG_TYPE, Base::ERR_FILTERS_WRONG_VALUE_TYPE, Base::SUPPORTED_FILTERS
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
filter_html, filter_overspaces, filter_whitespaces, #filters=, #initialize, #render
Constructor Details
This class inherits a constructor from Metanol::Meta::Base
Class Method Details
.render_current_url(url) ⇒ Object
6 7 8 9 10 |
# File 'lib/metanol/meta/open_graph.rb', line 6 def self.render_current_url(url) return '' if url.blank? "<meta property=\"og:url\" content=\"#{url}\" />" end |
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/metanol/meta/open_graph.rb', line 12 def name "og:#{@name}" end |