New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel#respond_to? should return true|false only #3228

Merged
merged 1 commit into from Oct 23, 2016

Conversation

Projects
None yet
2 participants
@ksss
Contributor

ksss commented Oct 23, 2016

t.rb

class A
  def respond_to_missing? method, bool
    p [method, bool]
  end
end
p A.new.respond_to?(:foo)

Actual

$ mruby t.rb
[:foo, false]
[:foo, false]

Expect

$ ruby t.rb
[:foo, false]
true

@matz matz merged commit 7061658 into mruby:master Oct 23, 2016

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

matz added a commit that referenced this pull request Oct 23, 2016

@ksss ksss deleted the ksss:respond_to_missing branch Oct 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment