Sha256: 2fa5008c1611f814010554b62392430468c2070f65af0422b5a1374220f5009f
Contents?: true
Size: 364 Bytes
Versions: 5
Compression:
Stored size: 364 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
5 entries across 5 versions & 1 rubygems