class Arbre::ElementCollection

Stores a collection of Element objects

Public Instance Methods

&(other) click to toggle source
Calls superclass method
# File lib/arbre/element_collection.rb, line 14
def &(other)
  self.class.new(super)
end
+(other) click to toggle source
Calls superclass method
# File lib/arbre/element_collection.rb, line 6
def +(other)
  self.class.new(super)
end
-(other) click to toggle source
Calls superclass method
# File lib/arbre/element_collection.rb, line 10
def -(other)
  self.class.new(super)
end
to_s() click to toggle source
# File lib/arbre/element_collection.rb, line 18
def to_s
  self.collect do |element|
    element.to_s
  end.join('').html_safe
end