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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a JSON addition for Enumerator::ArithmeticSequence #583

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

havenwood
Copy link

This PR adds a JSON addition for Enumerator::ArithmeticSequence since it was added to the Ruby stdlib.

##
# Existing Range support
require 'json/add/range'
(0..42).to_json

##
# Proposed Enumerator::ArithmeticSequence addition
require 'json/add/arithmetic_sequence'
((0..42) % 3).to_json

I forgot JSON was a gem yesterday and made a PR to Ruby and filed feature request. I realized my mistake this morning, and opened this PR. 馃檪

@havenwood havenwood force-pushed the add_json_arithmetic_sequence branch from 3967bb0 to 04e299a Compare May 7, 2024 18:05
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