Class: ConvenientService::Utils::Object::ResolveType Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Object::ResolveType
- Defined in:
- lib/convenient_service/utils/object/resolve_type.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.
Instance Attribute Summary collapse
- #object ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ "class", ... private
-
#initialize(object) ⇒ ResolveType
constructor
private
A new instance of ResolveType.
Methods inherited from Support::Command
Constructor Details
#initialize(object) ⇒ ResolveType
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 ResolveType.
34 35 36 |
# File 'lib/convenient_service/utils/object/resolve_type.rb', line 34 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ 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.
29 30 31 |
# File 'lib/convenient_service/utils/object/resolve_type.rb', line 29 def object @object end |
Instance Method Details
#call ⇒ "class", ...
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.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/convenient_service/utils/object/resolve_type.rb', line 41 def call case object when ::Class "class" when ::Module "module" else "instance" end end |