Class: ConvenientService::Utils::Proc::Display Private

Inherits:
Support::Command show all
Defined in:
lib/convenient_service/utils/proc/display.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.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Support::Command

[], call

Constructor Details

#initialize(proc) ⇒ void

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.

Parameters:

Since:

  • 1.0.0



22
23
24
# File 'lib/convenient_service/utils/proc/display.rb', line 22

def initialize(proc)
  @proc = proc
end

Instance Attribute Details

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

Since:

  • 1.0.0



16
17
18
# File 'lib/convenient_service/utils/proc/display.rb', line 16

def proc
  @proc
end

Instance Method Details

#callObject

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 Can be any type.

Returns:

  • (Object)

    Can be any type.

Since:

  • 1.0.0



42
43
44
# File 'lib/convenient_service/utils/proc/display.rb', line 42

def call
  proc ? "{ ... }" : ""
end