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
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)
Returns the value of attribute method_name.
22 23 24 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 22 def method_name @method_name end |
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
16 17 18 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 16 def mod @mod end |
#private ⇒ Object (readonly)
Returns the value of attribute private.
40 41 42 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 40 def private @private end |
#protected ⇒ Object (readonly)
Returns the value of attribute protected.
34 35 36 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 34 def protected @protected end |
#public ⇒ Object (readonly)
Returns the value of attribute public.
28 29 30 |
# File 'lib/convenient_service/utils/module/instance_method_defined.rb', line 28 def public @public end |