inflate

Zlib.inflate(string)Zlib::Inflate.inflate(string) Class Public methods Decompresses string. Raises a Zlib::NeedDict exception if a preset dictionary is needed for decompression. This method is almost equivalent to the following code: def inflate(string) zstream = Zlib::Inflate.new buf = zstream.inflate(string) zstream.finish zstream.close buf end See also ::deflate

zlib_version

zlib_version() Class Public methods Returns the string which represents the version of zlib library.

abstract!

abstract!() Class Public methods Define a controller as abstract. See ::internal_methods for more details.

action_methods

action_methods() Class Public methods A list of method names that should be considered actions. This includes all public instance methods on a controller, less any internal methods (see internal_methods), adding back in any methods that are internal, but still exist on the class itself. Finally, hidden_actions are removed. Returns Set - A set of all methods that should be considered actions.

clear_action_methods!

clear_action_methods!() Class Public methods ::action_methods are cached and there is sometimes need to refresh them. clear_action_methods! allows you to do that, so next time you run ::action_methods, they will be recalculated

controller_path

controller_path() Class Public methods Returns the full controller name, underscored, without the ending Controller. For instance, MyApp::MyPostsController would return âmy_app/my_postsâ for controller_path. Returns String

hidden_actions

hidden_actions() Class Public methods The list of hidden actions. Defaults to an empty array. This can be modified by other modules or subclasses to specify particular actions as hidden. Returns Array - An array of method names that should not be considered actions.

internal_methods

internal_methods() Class Public methods A list of all internal methods for a controller. This finds the first abstract superclass of a controller, and gets a list of all public instance methods on that abstract class. Public instance methods of a controller would normally be considered action methods, so methods declared on abstract classes are being removed. (ActionController::Metal and ActionController::Base are defined as abstract)

method_added

method_added(name) Class Public methods Refresh the cached ::action_methods when a new action_method is added.

action_methods 2

action_methods() Instance Public methods Delegates to the class' action_methods