struct

Noir::RailsCallbackChain::ClassMacro

Inherits Struct < Value < Object

A def self.requires_login(arg = {}) body: the file defining it, the patterns that drop or bind the parameter the call's arguments go to, and the callback lines the body registers (before_action :ensure_logged_in, arg).

Constructors

new(path : String, drop : Regex | Nil, bind : Regex | Nil, body : Array(String))
Source

Instance methods

bind
body
clone
Source
copy_with(path _path = @path, drop _drop = @drop, bind _bind = @bind, body _body = @body)
Source
drop
path