Class: ConvenientService::Utils::Module::InstanceMethodDefined Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Module::InstanceMethodDefined
- Defined in:
- lib/convenient_service/utils/module/instance_method_defined.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
- #method_name ⇒ Object readonly private
- #mod ⇒ Object readonly private
- #private ⇒ Object readonly private
- #protected ⇒ Object readonly private
- #public ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ Boolean private
- #initialize(mod, method_name, public: true, protected: true, private: false) ⇒ void constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(mod, method_name, public: true, protected: true, private: false) ⇒ 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.
54 55 56 57 58 59 60 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 54 def initialize(mod, method_name, public: true, protected: true, private: false) @mod = mod @method_name = method_name @public = public @protected = protected @private = private end |
Instance Attribute Details
#method_name ⇒ 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/module/instance_method_defined.rb', line 22 def method_name @method_name end |
#mod ⇒ 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.
16 17 18 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 16 def mod @mod end |
#private ⇒ 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.
40 41 42 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 40 def private @private end |
#protected ⇒ 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.
34 35 36 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 34 def protected @protected end |
#public ⇒ 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.
28 29 30 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 28 def public @public end |
Instance Method Details
#call ⇒ Boolean
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.
65 66 67 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 65 def call Utils::Method.defined?(method_name, mod, public: public, protected: protected, private: private) end |