Class: Metanol::Meta::Main
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
filter_html, filter_overspaces, filter_whitespaces, #filters=, #initialize, #name
Constructor Details
This class inherits a constructor from Metanol::Meta::Base
Instance Method Details
#render ⇒ Object
4 5 6 7 8 |
# File 'lib/metanol/meta/main.rb', line 4 def render result = self.value return (!result.blank? ? "<title>#{result}</title>": '') if @name == :title super end |