Class: ConvenientService::Utils::Module::IncludeModule
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Module::IncludeModule
- Defined in:
- lib/convenient_service/utils/module/include_module.rb
Instance Attribute Summary collapse
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#other_mod ⇒ Object
readonly
Returns the value of attribute other_mod.
Instance Method Summary collapse
- #call ⇒ Boolean
- #initialize(mod, other_mod) ⇒ void constructor
Methods inherited from Support::Command
Constructor Details
#initialize(mod, other_mod) ⇒ void
24 25 26 27 |
# File 'lib/convenient_service/utils/module/include_module.rb', line 24 def initialize(mod, other_mod) @mod = mod @other_mod = other_mod end |
Instance Attribute Details
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
11 12 13 |
# File 'lib/convenient_service/utils/module/include_module.rb', line 11 def mod @mod end |
#other_mod ⇒ Object (readonly)
Returns the value of attribute other_mod.
17 18 19 |
# File 'lib/convenient_service/utils/module/include_module.rb', line 17 def other_mod @other_mod end |
Instance Method Details
#call ⇒ Boolean
32 33 34 |
# File 'lib/convenient_service/utils/module/include_module.rb', line 32 def call mod.included_modules.include?(other_mod) end |