Class: UiHelpers::Element::Classes
- Inherits:
-
Array
- Object
- Array
- UiHelpers::Element::Classes
- Defined in:
- lib/ui_helpers/elements/element.rb
Instance Method Summary collapse
Instance Method Details
#commit(*args) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ui_helpers/elements/element.rb', line 5 def commit(*args) args.each do |arg| case arg when Hash then arg.each { |key, value| self << [key, value].compact.join("-") unless value.nil? } else self << arg end end end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/ui_helpers/elements/element.rb', line 14 def to_s join(" ") end |