Class: Metanol::Meta::Main

Inherits:
Base
  • Object
show all
Defined in:
lib/metanol/meta/main.rb

Constant Summary

Constants inherited from Base

Base::SUPPORTED_FILTERS

Instance Attribute Summary

Attributes inherited from Base

#value

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

#renderObject



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