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

Add range_type? which means irange_type? and erange_type? #6773

Merged
merged 1 commit into from
Feb 18, 2019

Conversation

koic
Copy link
Member

@koic koic commented Feb 17, 2019

Follow up of #6126 (comment).

This PR adds range_type? method which means both irange_type? method and erange_type? method.


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Follow up of rubocop#6126 (comment).

This PR adds `range_type?` method which means both
`irange_type?` method and `erange_type?` method.
@koic koic changed the title Add range_type? which means irange_type? and erange_type?` Add range_type? which means irange_type? and erange_type? Feb 17, 2019
@koic koic force-pushed the add_range_type_predicate_method branch from c564498 to 4105b22 Compare February 17, 2019 23:54
Copy link
Collaborator

@Drenmi Drenmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@koic
Copy link
Member Author

koic commented Feb 18, 2019

Thanks for your review!

@koic koic merged commit b10af4f into rubocop:master Feb 18, 2019
@koic koic deleted the add_range_type_predicate_method branch February 18, 2019 04:36
koic added a commit to koic/rubocop that referenced this pull request Apr 29, 2019
Follow up rubocop#6773.

This PR refactors with `range_type`.
@koic koic mentioned this pull request Apr 30, 2019
8 tasks
bbatsov pushed a commit that referenced this pull request Apr 30, 2019
Follow up #6773.

This PR refactors with `range_type`.
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