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

use method_defined? instead of respond_to? #500

Merged
merged 1 commit into from
Aug 14, 2016

Conversation

mojavelinux
Copy link
Member

method_defined? is the correct method to use to detect an existing
method definition, not respond_to?

method_defined? is the correct method to use to detect an existing
method definition, not respond_to?
@mojavelinux
Copy link
Member Author

Also apply this to the 1.6 branch.

@robertpanzer robertpanzer merged commit 28da25c into asciidoctor:master Aug 14, 2016
@robertpanzer
Copy link
Member

Cherry-Picked to asciidoctorj-1.6.0 in 31ac862

@mojavelinux
Copy link
Member Author

👍

@mojavelinux mojavelinux deleted the use-method-defined branch August 14, 2016 20:27
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.

2 participants