Class: Metanol::Meta::Main
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
Instance Method Summary collapse
Methods inherited from Base
filter_html, filter_overspaces, filter_whitespaces, #filters=, #initialize
Constructor Details
This class inherits a constructor from Metanol::Meta::Base
Instance Method Details
#render ⇒ Object
6 7 8 9 10 |
# File 'lib/metanol/meta/main.rb', line 6 def render return (value.present? ? "<title>#{value}</title>" : '') if @name == :title super end |