Sha256: f638b67c96c2efdecc970d564cd71bccebc59e672f3bb7b678cea011b490d4b8
Contents?: true
Size: 417 Bytes
Versions: 15
Compression:
Stored size: 417 Bytes
Contents
module Arbre module HTML # Stores a collection of Element objects class Collection < Array def +(other) self.class.new(super) end def -(other) self.class.new(super) end def &(other) self.class.new(super) end def to_html self.collect do |element| element.to_html end.join.html_safe end end end end
Version data entries
15 entries across 15 versions & 4 rubygems