Class: Roby::Application::LifecycleHook Private

Inherits:
Object
  • Object
show all
Defined in:
lib/roby/app.rb

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

Instance Method Summary collapse

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.



3425
3426
3427
3428
# File 'lib/roby/app.rb', line 3425

def initialize(block, user: false)
    @block = block
    @user = user
end

Instance Attribute Details

#blockObject (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.



3422
3423
3424
# File 'lib/roby/app.rb', line 3422

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.



3430
3431
3432
# File 'lib/roby/app.rb', line 3430

def call(*args)
    block.call(*args)
end

#to_procObject

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.



3434
3435
3436
# File 'lib/roby/app.rb', line 3434

def to_proc
    block
end