.bundle/ruby/2.0.0/gems/kramdown-1.4.1/lib/kramdown/parser/kramdown.rb
# Update the given attributes hash +attr+ with the information from the inline attribute list
# +ial+ and all referenced ALDs.
Update the given attributes hash +attr+ with the information from the inline attribute list
+ial+ and all referenced ALDs.
Update the given attributes hash + attr + with the information from the inline attribute list + ial + and all referenced ALDs .
def update_attr_with_ial(attr, ial)
        ial[:refs].each do |ref|
          update_attr_with_ial(attr, ref) if ref = @alds[ref]
        end if ial[:refs]
        ial.each do |k,v|
          if k == IAL_CLASS_ATTR
            attr[k] = (attr[k] || '') << " #{v}"
            attr[k].lstrip!
          elsif k.kind_of?(String)
            attr[k] = v
          end
        end
      end
def update_attr_with_ial ( attr , ial ) ial [ :refs ] . each do | ref | update_attr_with_ial ( attr , ref ) if ref = @alds [ ref ] end if ial [ :refs ] ial . each do | k , v | if k == IAL_CLASS_ATTR attr [ k ] = ( attr [ k ] || '' ) << " #{v}" attr [ k ] . lstrip! elsif k . kind_of? ( String ) attr [ k ] = v end end end
Update the given attributes hash +attr+ with the information from the inline attribute list
+ial+ and all referenced ALDs.
Update the given attributes hash + attr + with the information from the inline attribute list + ial + and all referenced ALDs .
attr
ial