Class: ConvenientService::Utils::Module::InstanceMethodDefined
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Module::InstanceMethodDefined
- Defined in:
- lib/convenient_service/utils/module/instance_method_defined.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#private ⇒ Object
readonly
Returns the value of attribute private.
-
#protected ⇒ Object
readonly
Returns the value of attribute protected.
-
#public ⇒ Object
readonly
Returns the value of attribute public.
Instance Method Summary collapse
- #call ⇒ Boolean
- #initialize(mod, method_name, public: true, protected: true, private: false) ⇒ void constructor
Methods inherited from Support::Command
Constructor Details
#initialize(mod, method_name, public: true, protected: true, private: false) ⇒ void
49 50 51 52 53 54 55 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 49 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)
Returns the value of attribute method_name.
17 18 19 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 17 def method_name @method_name end |
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
11 12 13 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 11 def mod @mod end |
#private ⇒ Object (readonly)
Returns the value of attribute private.
35 36 37 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 35 def private @private end |
#protected ⇒ Object (readonly)
Returns the value of attribute protected.
29 30 31 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 29 def protected @protected end |
#public ⇒ Object (readonly)
Returns the value of attribute public.
23 24 25 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 23 def public @public end |