class Infoboxer::Templates::Base
Attributes
template_name[RW]
template_options[RW]
Public Class Methods
clean_name()
click to toggle source
# File lib/infoboxer/templates/base.rb, line 15 def clean_name template_name ? "Template[#{template_name}]" : 'Template' end
inspect()
click to toggle source
Calls superclass method
# File lib/infoboxer/templates/base.rb, line 11 def inspect template_name ? "Infoboxer::Templates::#{clean_name}" : super end
Public Instance Methods
==(other)
click to toggle source
# File lib/infoboxer/templates/base.rb, line 20 def ==(other) other.is_a?(Tree::Template) && _eq(other) end
Protected Instance Methods
clean_class()
click to toggle source
Calls superclass method
# File lib/infoboxer/templates/base.rb, line 26 def clean_class if self.class.template_name == name self.class.clean_name else super end end