Method: Excalibur::ViewHelpers#quick_set

Defined in:
lib/excalibur/view_helpers.rb

#quick_set(type, *args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/excalibur/view_helpers.rb', line 9

def quick_set(type, *args)
  case type
  when :title, :description
    section = args.shift
    excalibur_subject.configuration.send(type).send(
        "update_#{section}",
        *args
    )
  when :meta_tag
    excalibur_subject.configuration.set_meta_tag(*args)
  end
end