Sha256: 25369796fd950670d37710ee971543839f6127c1923cf435d9765b9607f3e0f1
Contents?: true
Size: 779 Bytes
Versions: 4
Compression:
Stored size: 779 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Support module DependencyContainer module Commands class AssertValidScope < Support::Command ## # @!attribute [r] scope # @return [Symbol] # attr_reader :scope ## # @param scope [Symbol] # @return [void] # def initialize(scope:) @scope = scope end ## # @return [void] # @raise [ConvenientService::Support::DependencyContainer::Exceptions::InvalidScope] # def call raise Exceptions::InvalidScope.new(scope: scope) unless Constants::SCOPES.include?(scope) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems