Skip to content
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
Merged

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

merged 1 commit into from Oct 23, 2016

Conversation

ksss
Copy link
Contributor

@ksss 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
@ksss ksss deleted the 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants