Sha256: 505021b31538f140f19dfa227eb72038355adaded79df2087e1c67f0dc26cb5d
Contents?: true
Size: 381 Bytes
Versions: 15
Compression:
Stored size: 381 Bytes
Contents
require 'set' module Arbre module HTML # Holds a set of classes class ClassList < Set def add(class_names) class_names.to_s.split(" ").each do |class_name| super(class_name) end self end alias :<< :add def to_s to_html end def to_html to_a.join(" ") end end end end
Version data entries
15 entries across 15 versions & 4 rubygems