Merb::Slices::ControllerMixin::MixinMethods

Public Class Methods

extended(klass) click to toggle source
     # File lib/merb-slices/controller_mixin.rb, line 103
103:         def self.extended(klass)
104:           klass.send(:include, InstanceMethods)
105:           klass.hide_action :slice if klass.respond_to?(:hide_action)
106:         end

Public Instance Methods

layout_for_slice(layout = nil) click to toggle source

Use the slice’s layout - defaults to underscored identifier.

This is set for generated stubs that support layouts.

@param layout<#> The layout name to use.

     # File lib/merb-slices/controller_mixin.rb, line 113
113:         def layout_for_slice(layout = nil)
114:           layout(layout || self.slice.config[:layout]) if layout || self.slice.config.key?(:layout)
115:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.