gems/eskimo-html/lib/eskimo/html/component.rb
def serialize_attributes
      attributes.map do |(k, v)|
        k = ATTRIBUTE_REWRITES.fetch(k.to_s, k.to_s)

        case v
        when true
          "#{k}=\"#{k}\""
        when false
        else
          "#{k}=\"#{v}\""
        end
      end.join(' ')
    end
# Mapping of Ruby attribute name to HTML attribute name; some words like
# "class" are reserved and are problematic when passed as attributes so this
# hash supports a method to rewrite those.
Mapping of Ruby attribute name to HTML attribute name; some words like
"class" are reserved and are problematic when passed as attributes so this
hash supports a method to rewrite those.
Mapping of Ruby attribute name to HTML attribute name ; some words like " class " are reserved and are problematic when passed as attributes so this hash supports a method to rewrite those .
def serialize_attributes
      attributes.map do |(k, v)|
        k = ATTRIBUTE_REWRITES.fetch(k.to_s, k.to_s)
        case v
        when true
          "#{k}=\"#{k}\""
        when false
        else
          "#{k}=\"#{v}\""
        end
      end.join(' ')
    end
def serialize_attributes attributes . map do | ( k , v ) | k = ATTRIBUTE_REWRITES . fetch ( k . to_s , k . to_s ) case v when true "#{k}=\"#{k}\"" when false else "#{k}=\"#{v}\"" end end . join ( ' ' ) end
Mapping of Ruby attribute name to HTML attribute name; some words like
"class" are reserved and are problematic when passed as attributes so this
hash supports a method to rewrite those.
Mapping of Ruby attribute name to HTML attribute name ; some words like " class " are reserved and are problematic when passed as attributes so this hash supports a method to rewrite those .