Class: Arbre::HTML::Collection
- Defined in:
- lib/active_admin/arbre/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/collection.rb', line 15 def &(other) self.class.new(super) end |
#+(other) ⇒ Object
7 8 9 |
# File 'lib/active_admin/arbre/collection.rb', line 7 def +(other) self.class.new(super) end |
#-(other) ⇒ Object
11 12 13 |
# File 'lib/active_admin/arbre/collection.rb', line 11 def -(other) self.class.new(super) end |
#to_html ⇒ Object
19 20 21 22 23 |
# File 'lib/active_admin/arbre/collection.rb', line 19 def to_html self.collect do |element| element.to_html end.join.html_safe end |