lib/evil/client/schema/scope.rb in evil-client-3.0.4 vs lib/evil/client/schema/scope.rb in evil-client-3.1.0
- old
+ new
@@ -18,28 +18,28 @@
#
# Every sub-scope schema refers to the current one as a [#parent]
#
# @return [Hash<Symbol, Class>]
#
- def scopes
+ def scopes(*_args)
@__children__.reject { |_, child| child.leaf? }
end
# The collection of named operation schemas
#
# @return [Hash<[Symbol, nil], Class>]
#
- def operations
+ def operations(*_args)
@__children__.select { |_, child| child.leaf? }
end
# Creates or updates sub-scope definition
#
# @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)
+ def scope(name, **_kwargs, &block)
key = NameError.check!(name)
TypeError.check! self, key, :scope
@__children__[key] ||= self.class.new(self, key)
@__children__[key].instance_exec(&block)
self