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

Simplify slicing #1

Merged
merged 2 commits into from
Aug 26, 2019
Merged

Simplify slicing #1

merged 2 commits into from
Aug 26, 2019

Conversation

AlexMooney
Copy link
Contributor

@AlexMooney AlexMooney commented Aug 22, 2019

I enjoyed reading your blog post about this gem!

I noticed when I looked at the code that the validation message for left_bounds wasn't quite right, and then I figured out a way to clean up those if statements.

Edit: BTW, the rake task didn't work to run the specs for me. I installed the rspec-core binstub instead and ran that to make sure I didn't break your specs. Not sure why the rake wasn't behaving.

It could be more elegant if right_bounds was positive, but then the
slices for the Corrector would be uglier.
@jkeen
Copy link
Owner

jkeen commented Aug 26, 2019

Thanks, and this looks great! Thanks for the edits

@jkeen jkeen merged commit d734a42 into jkeen:master Aug 26, 2019
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