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.
30 31 32 |
# File 'lib/convenient_service/utils/class/display_name.rb', line 30 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.
22 23 24 |
# File 'lib/convenient_service/utils/class/display_name.rb', line 22 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.
43 44 45 |
# File 'lib/convenient_service/utils/class/display_name.rb', line 43 def call klass.name || "AnonymousClass(##{klass.object_id})" end |