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
32 33 34 35 36 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 32 def initialize(slug:, scope:, container:) @slug = slug @scope = scope @container = container end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
24 25 26 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 24 def container @container end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
18 19 20 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 18 def scope @scope end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
12 13 14 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 12 def slug @slug end |
Instance Method Details
#call ⇒ void
This method returns an undefined value.
42 43 44 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb', line 42 def call ::ConvenientService.raise Exceptions::NotExportedMethod.new(method_name: slug, method_scope: scope, mod: container) unless method end |