Class: Metanol::Meta::Main

Inherits:
Base
  • Object
show all
Defined in:
lib/metanol/meta/main.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

#name, #value

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

#renderObject



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