Class: ConvenientService::Utils::Class::DisplayName
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Class::DisplayName
- Defined in:
- lib/convenient_service/utils/class/display_name.rb
Instance Attribute Summary collapse
- #klass ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ String private
- #initialize(klass) ⇒ void constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(klass) ⇒ 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.
35 36 37 |
# File 'lib/convenient_service/utils/class/display_name.rb', line 35 def initialize(klass) @klass = klass end |
Instance Attribute Details
#klass ⇒ 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.
27 28 29 |
# File 'lib/convenient_service/utils/class/display_name.rb', line 27 def klass @klass end |
Instance Method Details
#call ⇒ String
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.
48 49 50 |
# File 'lib/convenient_service/utils/class/display_name.rb', line 48 def call klass.name || "AnonymousClass(##{klass.object_id})" end |