struct

Analyzer::Ruby::Rails::Frame

Inherits Struct < Value < Object

Constructors

new(kind : Symbol, path : String = "", controller_subdir : String = "", resource_name : String | Nil = nil, controller_path : String | Nil = nil, controller_scope : String | Nil = nil, shallow : Bool = false, shallow_member : Bool = false, param_name : String | Nil = nil, options : Hash(String, String) | Nil = nil)
Source

Instance methods

controller_path
Source
controller_path=(controller_path : String | Nil)
Source
controller_scope
Source
controller_scope=(controller_scope : String | Nil)
Source
controller_subdir
Source
controller_subdir=(controller_subdir : String)
Source
kind
Source
kind=(kind : Symbol)
Source
options

with_options only: [:index] do: options every route call in the block takes unless it spells its own.

Source
options=(options : Hash(String, String) | Nil)

with_options only: [:index] do: options every route call in the block takes unless it spells its own.

Source
param_name

The URL key a plural resources frame binds (:id, or param:), which nested routes see as <singular>_<param>; nil on a singular resource, whose URL carries no key.

Source
param_name=(param_name : String | Nil)

The URL key a plural resources frame binds (:id, or param:), which nested routes see as <singular>_<param>; nil on a singular resource, whose URL carries no key.

Source
path
Source
path=(path : String)
Source
resource_name
Source
resource_name=(resource_name : String | Nil)
Source
shallow=(shallow : Bool)

shallow do / resources ..., shallow: true: nested resources below this frame get shallow member routes.

Source
shallow?

shallow do / resources ..., shallow: true: nested resources below this frame get shallow member routes.

Source
shallow_member=(shallow_member : Bool)

A shallow-nested resources frame: its member path stands on its own (comments/:id, not posts/:post_id/comments/:id), so it replaces the enclosing resources' paths for everything nested under it.

Source
shallow_member?

A shallow-nested resources frame: its member path stands on its own (comments/:id, not posts/:post_id/comments/:id), so it replaces the enclosing resources' paths for everything nested under it.

Source