lib/evil/client/schema/scope.rb in evil-client-1.0.0 vs lib/evil/client/schema/scope.rb in evil-client-1.1.0

- old
+ new

@@ -37,11 +37,11 @@ # @param [#to_sym] name The unique name of subscope inside current scope # @param [Proc] block The block containing definition for the subscope # @return [self] # def scope(name, &block) - key = NameError.check!(name, RESERVED) + key = NameError.check!(name) TypeError.check! self, key, :scope @__children__[key] ||= self.class.new(self, key) @__children__[key].instance_exec(&block) self end @@ -51,11 +51,11 @@ # @param [#to_sym] name The unique name of operation inside the scope # @param [Proc] block The block containing definition for the operation # @return [self] # def operation(name, &block) - key = NameError.check!(name, RESERVED) + key = NameError.check!(name) TypeError.check! self, key, :operation @__children__[key] ||= self.class.superclass.new(self, key) @__children__[key].instance_exec(&block) self end @@ -64,10 +64,7 @@ def initialize(*) super @__children__ = {} end - - RESERVED = \ - %i[operations scopes scope options schema settings inspect logger].freeze end end