class MaRuKu::AttributeList
This represents a list of attributes specified in the Markdown document that apply to a Markdown-generated tag. What was ‘{#id .class key=“val” ref}` in the Markdown is parsed into `[[:id, ’id’], [:class, ‘class’], [‘key’, ‘val’], [:ref, ‘ref’]]‘.
Public Instance Methods
Private Instance Methods
Source
# File lib/maruku/attributes.rb, line 22 def quote_if_needed(str) (str =~ /[\s'"]/) ? str.inspect : str end