Method: Bootstrap4Helper::Accordion#method_missing

Defined in:
lib/bootstrap4_helper/accordion.rb

#method_missing(method, *args, &block) ⇒ Object

Because Accordions are basically ‘Cards` with a wrapper, we might as well catch common `Card` methods and send them to the card object. No point in creating similar methods for `Accordions`.

Parameters:

  • method (Symbol|String)
  • args (Mixed)


81
82
83
84
85
86
87
# File 'lib/bootstrap4_helper/accordion.rb', line 81

def method_missing(method, *args, &block)
  if CARD_METHODS.include?(method)
    @card.send(method, *args, &block)
  else
    super
  end
end