Sha256: 5cba3fed698591084754e13088d4962c85118763a3a0054f58c99936dbeacbd1
Contents?: true
Size: 368 Bytes
Versions: 11
Compression:
Stored size: 368 Bytes
Contents
module Arbre # Stores a collection of Element objects class ElementCollection < Array def +(other) self.class.new(super) end def -(other) self.class.new(super) end def &(other) self.class.new(super) end def to_s self.collect do |element| element.to_s end.join('').html_safe end end end
Version data entries
11 entries across 11 versions & 2 rubygems