def actions(type=nil)
      actions = type ? self.class.actions[type] : self.class.actions.values.flatten
      actions.inject([]) do |actions, description|
        actions << description.compile(self) if match_options?(description.options)
        actions
      end
    end
def actions(type=nil)
      actions = type ? self.class.actions[type] : self.class.actions.values.flatten
      actions.inject([]) do |actions, description|
        actions << description.compile(self) if match_options?(description.options)
        actions
      end
    end
Finds and returns all templates and files for this generators whose options match its options.

 === Parameters
 type<Symbol>:: The type of actions to look up (optional)
 === Returns
 [Templater::Actions::*]:: The found templates and files.