module Lab42::Rgxargs::Constrainer

Public Instance Methods

allow_kwds(*kwds) click to toggle source
# File lib/lab42/rgxargs/constrainer.rb, line 5
def allow_kwds(*kwds)
  @allowed = (allowed||Set.new).union(Set.new(kwds.flatten))
end
require_kwds(*kwds) click to toggle source
# File lib/lab42/rgxargs/constrainer.rb, line 9
def require_kwds(*kwds)
  @required = (required||Set.new).union(Set.new(kwds.flatten))
end