/Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/builtin_contracts.rb:390:in `valid?': undefined method `keys' for #<Proc:0x007fbf8a16ba60@keyword_args_vs_func.rb:10> (NoMethodError)
from /Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/validators.rb:53:in `block (2 levels) in <module:Validators>'
from /Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/call_with.rb:18:in `[]'
from /Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/call_with.rb:18:in `block in call_with'
from /Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/call_with.rb:13:in `times'
from /Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/call_with.rb:13:in `call_with'
from /Users/rk/.rvm/gems/ruby-2.2.3@soft24/gems/contracts-0.12.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
from keyword_args_vs_func.rb:10:in `<main>'
Code to replicate problem:
Raised error: