Skip to content

Conversation

@kkirsche
Copy link
Contributor

Follow Ruby standards when returning a boolean value. This means the names of predicate methods (methods that return a boolean value) should end in a question mark. (i.e. Array#empty?).

Per:
https://github.com/styleguide/ruby
http://pragmati.st/2012/03/24/the-elements-of-ruby-style-predicate-methods/
http://raganwald.com/2013/09/12/the-predicate-module-pattern.html

@karmi
Copy link
Contributor

karmi commented Feb 12, 2015

@kkirsche Good point! However, since we have a common API definition for all languages, these methods have to be added as an extra Ruby API. Can you change the pull request to do that?

@kkirsche
Copy link
Contributor Author

@karmi sure :) I'll just alias the existing methods exposing a new set.

@karmi
Copy link
Contributor

karmi commented Feb 12, 2015

@kkirsche Perfect!, thanks!

@kkirsche
Copy link
Contributor Author

Sorry, for some reason things broke when I tried to rollback my old commits so I made a new one as pull request #134

@karmi
Copy link
Contributor

karmi commented Feb 12, 2015

@kkirsche No worries!, saw that, will look at that!

karmi pushed a commit that referenced this pull request Feb 17, 2015
karmi added a commit that referenced this pull request Feb 17, 2015
Removed the extra test files, and added a test case which test the predicate method availability and idenity.

Related: #133, #134
@karmi
Copy link
Contributor

karmi commented Feb 17, 2015

I've merged the patch, Kevin, thanks! I've removed the extra test files and just added appropriate should test cases for method availability and identity.

@kkirsche
Copy link
Contributor Author

Awesome. Thanks!

@kkirsche kkirsche deleted the patch-1 branch September 3, 2015 00:43
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