Sha256: c05a41cb6248beeaf6e30d6265b3558eb2ed332de17d98580a264edf0bd5548a
Contents?: true
Size: 306 Bytes
Versions: 12
Compression:
Stored size: 306 Bytes
Contents
module Arbre module HTML class Attributes < Hash def to_s self.collect do |name, value| "#{html_escape(name)}=\"#{html_escape(value)}\"" end.join(" ") end protected def html_escape(s) ERB::Util.html_escape(s) end end end end
Version data entries
12 entries across 12 versions & 3 rubygems