Method: WebHDFS::ClientV1#check_options

Defined in:
lib/webhdfs/client_v1.rb

#check_options(options, optdecl = []) ⇒ Object

def cancel_delegation_token(token, options={}) # CANCELDELEGATIONTOKEN

raise NotImplementedError

end

Raises:

  • (ArgumentError)


281
282
283
284
# File 'lib/webhdfs/client_v1.rb', line 281

def check_options(options, optdecl=[])
  ex = options.keys.map(&:to_s) - (optdecl || [])
  raise ArgumentError, "no such option: #{ex.join(' ')}" unless ex.empty?
end