class Motley::SchemaSet::TagFinder
¶ ↑
Motley::SchemaSet::TagFinder
Attributes
schemaset[R]
Public Class Methods
new(schemaset)
click to toggle source
# File lib/motley.rb, line 397 def initialize(schemaset) @schemaset = schemaset end
Public Instance Methods
[](key)
click to toggle source
# File lib/motley.rb, line 408 def [](key) # $tm.hrm # normalize key key = key.downcase # loop through schemas looking for tag @schemaset.each do |schema| if tag = schema.tags[key] return tag end end # didn't find the tag return nil end