rmagick/ruby/1.8/gems/actionpack-3.0.1/lib/abstract_controller/layouts.rb
# Determine the layout for a given name and details, taking into account
# the name type.
#
# ==== Parameters
# * <tt>name</tt> - The name of the template
# * <tt>details</tt> - A list of details to restrict
#   the lookup to. By default, layout lookup is limited to the
#   formats specified for the current request.
Determine the layout for a given name and details, taking into account
the name type.

Parameters
name - The name of the template
details - A list of details to restrict
the lookup to. By default, layout lookup is limited to the
formats specified for the current request.
Determine the layout for a given name and details taking into account the name type . Parameters name - The name of the template details - A list of details to restrict the lookup to . By default layout lookup is limited to the formats specified for the current request .
def _layout_for_option(name)
      case name
      when String     then name
      when true       then _default_layout(true)
      when :default   then _default_layout(false)
      when false, nil then nil
      else
        raise ArgumentError,
          "String, true, or false, expected for `layout'; you passed #{name.inspect}"
      end
    end
def _layout_for_option ( name ) case name when String then name when true then _default_layout ( true ) when :default then _default_layout ( false ) when false , nil then nil else raise ArgumentError , "String, true, or false, expected for `layout'; you passed #{name.inspect}" end end
Determine the layout for a given name and details, taking into account
the name type.
Determine the layout for a given name and details taking into account the name type .
name