.map(key) ⇒ Object

Map a key to an element or design pattern

45
46
47
48
49
50
51
52
53
54
55
56

# File 'lib/prism.rb', line 45defself.map(key)casenormalize(key)when:valueclass,:abbr,:uri,:url,:typevaluePrism::Pattern.map(key)when:hcard,:geo,:rellicense,:reltag,:votelinks,:xfn,:xmdp,:xoxo,:adrPrism::Microformat.map(key)when:basePrism::POSH::Baseelseraise"#{key} is not a recognized parser."endend