Module: Iconoclast::ControllerMixin

Defined in:
lib/iconoclast.rb

Overview

:startdoc:

Instance Method Summary collapse

Instance Method Details

#iconic(*args, &block) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/iconoclast.rb', line 14

def iconic(*args, &block)
  args.flatten.each do |arg|
    case arg
      when String, Symbol
        file_name = 'iconoclast/' + arg.to_s.underscore
        helper(file_name)
      else
        helper(arg, &block)
    end
  end
end