Method: Components.merge_standard_component_options!
- Defined in:
- lib/components.rb
.merge_standard_component_options!(args, standard_options, arity) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/components.rb', line 12 def self.(args, , arity) if # when the method's arity is positive, it only accepts a fixed list of arguments, so we can't add another. args << {} unless args.last.is_a?(Hash) or not arity < 0 args.last.reverse_merge!() if args.last.is_a?(Hash) end end |