Class: Arbre::HTML::Collection
- Inherits:
-
Array
- Object
- Array
- Arbre::HTML::Collection
- Defined in:
- lib/active_admin/arbre/html/collection.rb
Overview
Stores a collection of Element objects
Instance Method Summary collapse
Instance Method Details
#&(other) ⇒ Object
15 16 17 |
# File 'lib/active_admin/arbre/html/collection.rb', line 15 def &(other) self.class.new(super) end |
#+(other) ⇒ Object
7 8 9 |
# File 'lib/active_admin/arbre/html/collection.rb', line 7 def +(other) self.class.new(super) end |
#-(other) ⇒ Object
11 12 13 |
# File 'lib/active_admin/arbre/html/collection.rb', line 11 def -(other) self.class.new(super) end |
#to_s ⇒ Object
19 20 21 22 23 |
# File 'lib/active_admin/arbre/html/collection.rb', line 19 def to_s self.collect do |element| element.to_s end.join.html_safe end |