class Analyzer::Ruby::Rails::RouteFileState

Overview

Everything one routes.rb walk carries: the file-wide constants plus the mutable parse state the directive handlers below read and update. The collections are shared by reference — a handler pushing a frame or recording a concern mutates the very objects parse_routes_file walks — while the doorkeeper config is swapped for fresh containers when a use_doorkeeper block closes, so those two are reassignable.

Defined in:

analyzer/analyzers/ruby/rails.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(framework_root : String, details : Details, parsed_route_files : Set(String), stack : Array(Frame), concern_resources : Hash(String, Array(ConcernResource))) #

[View source]

Instance Method Detail

def concern_resources : Hash(String, Array(ConcernResource)) #

[View source]
def details : Details #

[View source]
def doorkeeper_controllers : Hash(String, String) #

[View source]
def doorkeeper_controllers=(doorkeeper_controllers : Hash(String, String)) #

[View source]
def doorkeeper_skip : Set(String) #

use_doorkeeper do ... end config accumulated while the block is on top of the stack: skip_controllers :foo drops a group, controllers foo: 'bar' remaps the implementing controller.


[View source]
def doorkeeper_skip=(doorkeeper_skip : Set(String)) #

use_doorkeeper do ... end config accumulated while the block is on top of the stack: skip_controllers :foo drops a group, controllers foo: 'bar' remaps the implementing controller.


[View source]
def framework_root : String #

[View source]
def parsed_route_files : Set(String) #

[View source]
def stack : Array(Frame) #

[View source]