Class: Brakeman::Controller
- Inherits:
-
Collection
- Object
- Collection
- Brakeman::Controller
- Includes:
- ControllerMethods
- Defined in:
- lib/brakeman/tracker/controller.rb
Constant Summary
Constants included from Util
Util::ALL_COOKIES, Util::ALL_PARAMETERS, Util::COOKIES, Util::COOKIES_SEXP, Util::PARAMETERS, Util::PARAMS_SEXP, Util::PATH_PARAMETERS, Util::QUERY_PARAMETERS, Util::REQUEST_COOKIES, Util::REQUEST_ENV, Util::REQUEST_PARAMETERS, Util::REQUEST_PARAMS, Util::REQUEST_REQUEST_PARAMETERS, Util::SAFE_LITERAL, Util::SESSION, Util::SESSION_SEXP
Instance Attribute Summary
Attributes included from ControllerMethods
Attributes inherited from Collection
#collection, #files, #includes, #name, #options, #parent, #src, #tracker
Instance Method Summary collapse
-
#initialize(name, parent, file_name, src, tracker) ⇒ Controller
constructor
A new instance of Controller.
Methods included from ControllerMethods
#add_before_filter, #before_filter_list, #before_filter_to_hash, #before_filters, #get_before_filters, #get_skipped_filters, #initialize_controller, #prepend_before_filter, #protect_from_forgery?, #remove_skipped_filters, #skip_filter, #skip_filters
Methods inherited from Collection
#add_file, #add_include, #add_method, #add_option, #ancestor?, #each_method, #file, #get_method, #methods_public, #top_line
Methods included from Util
#array?, #block?, #call?, #camelize, #class_name, #constant?, #contains_class?, #cookies?, #false?, #hash?, #hash_access, #hash_insert, #hash_iterate, #integer?, #kwsplat?, #make_call, #node_type?, #number?, #params?, #pluralize, #rails_version, #regexp?, #remove_kwsplat, #request_env?, #request_value?, #result?, #safe_literal, #safe_literal?, #safe_literal_target?, #set_env_defaults, #sexp?, #string?, #string_interp?, #symbol?, #template_path_to_name, #true?, #underscore
Constructor Details
#initialize(name, parent, file_name, src, tracker) ⇒ Controller
Returns a new instance of Controller.
155 156 157 158 159 |
# File 'lib/brakeman/tracker/controller.rb', line 155 def initialize name, parent, file_name, src, tracker super initialize_controller @collection = tracker.controllers end |