Method: MultiHtml.current_adapter

Defined in:
lib/multi_html.rb

.current_adapter(options) ⇒ Object



91
92
93
94
95
96
97
# File 'lib/multi_html.rb', line 91

def current_adapter(options)
  if new_adapter = (options || {}).delete(:adapter)
    load_adapter(new_adapter)
  else
    adapter
  end
end