Class: Roby::Application::LifecycleHook Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Internal representation of the app’s lifecycle hooks
Instance Attribute Summary collapse
- #block ⇒ Object readonly private
Instance Method Summary collapse
- #call(*args) ⇒ Object private
-
#initialize(block, user: false) ⇒ LifecycleHook
constructor
private
A new instance of LifecycleHook.
- #to_proc ⇒ Object private
Constructor Details
#initialize(block, user: false) ⇒ LifecycleHook
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LifecycleHook.
3256 3257 3258 3259 |
# File 'lib/roby/app.rb', line 3256 def initialize(block, user: false) @block = block @user = user end |
Instance Attribute Details
#block ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3253 3254 3255 |
# File 'lib/roby/app.rb', line 3253 def block @block end |
Instance Method Details
#call(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3261 3262 3263 |
# File 'lib/roby/app.rb', line 3261 def call(*args) block.call(*args) end |
#to_proc ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3265 3266 3267 |
# File 'lib/roby/app.rb', line 3265 def to_proc block end |