module Druid::Elements
Public Class Methods
element_class_for(tag_name, type=nil)
click to toggle source
method to return the element for a tag_name
# File lib/druid/elements.rb, line 17 def element_class_for(tag_name, type=nil) return type_to_class[type.to_sym] if type tag_to_class[tag_name.to_sym] || Druid::Elements::Element end
tag_to_class()
click to toggle source
method to return the collection of tag_name class mappings
# File lib/druid/elements.rb, line 10 def tag_to_class @tag_to_class ||= {} end
type_to_class()
click to toggle source
# File lib/druid/elements.rb, line 5 def type_to_class @type_to_class ||= {} end