new card style

This commit is contained in:
2023-01-04 17:12:34 +02:00
parent 01e424caa8
commit 7a31f53835
6 changed files with 35 additions and 8 deletions

View File

@ -4,10 +4,13 @@ module Merged
# use options with as many option names as neccessary
def options(section, *args )
all = {}
extra_class = ""
extra_class = args.pop if args.last.is_a?(String)
args.each do |option_name|
hash = send "#{option_name}_option".to_sym , section
all.merge!(hash) { |key, one, two| one.to_s + " " + two.to_s }
end
all[:class] = all[:class] + " #{extra_class}"
all
end