lib/evil/client/container/scope.rb in evil-client-3.0.4 vs lib/evil/client/container/scope.rb in evil-client-3.1.0

- old
+ new

@@ -7,13 +7,12 @@ include Chaining # The collection of named sub-scope constructors # @return [Hash<Symbol, Evil::Client::Container::Scope::Builder>] def scopes - @scopes ||= \ - schema.scopes.each_with_object({}) do |(key, sub_schema), obj| - obj[key] = Builder::Scope.new(sub_schema, settings) - end + @scopes ||= schema.scopes.transform_values do |sub_schema| + Builder::Scope.new(sub_schema, settings) + end end # The collection of named operations constructors # @return [Hash<Symbol, Evil::Client::Container::Operation::Builder>] def operations