Class: Arbre::HTML::ClassList
- Inherits:
-
Set
- Object
- Set
- Arbre::HTML::ClassList
- Defined in:
- lib/active_admin/arbre/html/class_list.rb
Overview
Holds a set of classes
Instance Method Summary collapse
- #add(class_names) ⇒ Object (also: #<<)
- #to_s ⇒ Object
Instance Method Details
#add(class_names) ⇒ Object Also known as: <<
9 10 11 12 13 14 |
# File 'lib/active_admin/arbre/html/class_list.rb', line 9 def add(class_names) class_names.to_s.split(" ").each do |class_name| super(class_name) end self end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/active_admin/arbre/html/class_list.rb', line 17 def to_s to_a.join(" ") end |