Class | Innate::Action |
In: |
lib/innate/action.rb
|
Parent: | Struct.new(*ACTION_MEMBERS) |
Note that the default cannot be a constant as assigning the value objects to the struct would modify them and might lead to bugs due to persisting action contents.
@param [Hash, to_hash] hash used to seed new Action instance @return [Action] action with the given defaults from hash @api stable @author manveru
@return [Binding] binding of the instance for this Action @see Node#binding @api stable @author manveru
Call the Action instance, will insert itself temporarily into Current.actions during the render operation so even in nested calls one can still access all other Action instances. Will initialize the assigned node and call Action#render
@return [String] The rendition of all nested calls @see Action#render Node#action_found @api stable @author manveru
Copy Action#variables as instance variables into the given object. Defaults to copying the variables to self.
@param [Object instance_variable_set] object @return [NilClass] there is no indication of failure or success @see Action#render @author manveru
Copy the instance variable names and values from given from_action#instance into the Action#variables of the action this method is called on.
@param [Action instance] from_action @return [Action] from_action @see Action#wrap_in_layout @api unstable @author manveru