Class: ConvenientService::Support::DependencyContainer::Commands::AssertValidMethod
- Inherits:
-
Command
- Object
- Command
- ConvenientService::Support::DependencyContainer::Commands::AssertValidMethod
- Defined in:
- lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
#initialize(slug:, scope:, container:) ⇒ void
37 38 39 40 41 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 37 def initialize(slug:, scope:, container:) @slug = slug @scope = scope @container = container end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
29 30 31 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 29 def container @container end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
23 24 25 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 23 def scope @scope end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
17 18 19 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 17 def slug @slug end |
Instance Method Details
#call ⇒ void
This method returns an undefined value.
47 48 49 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 47 def call ::ConvenientService.raise Exceptions::NotExportedMethod.new(method_name: slug, method_scope: scope, mod: container) unless method end |