Ruby
3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
|
Decomposed Enumerator::ArithmeicSequence
.
More...
#include <enumerator.h>
Data Fields | |
VALUE | begin |
"Left" or "lowest" endpoint of the sequence. More... | |
VALUE | end |
"Right" or "highest" endpoint of the sequence. More... | |
VALUE | step |
Step between a sequence. More... | |
int | exclude_end |
Whether the endpoint is open or closed. More... | |
Decomposed Enumerator::ArithmeicSequence
.
This is a subclass of rb_cEnumerator, which represents a sequence of numbers with common difference. Internal data structure of the class is opaque to users, but you can obtain a decomposed one using rb_arithmetic_sequence_extract().
Definition at line 53 of file enumerator.h.
VALUE rb_arithmetic_sequence_components_t::begin |
"Left" or "lowest" endpoint of the sequence.
Definition at line 54 of file enumerator.h.
Referenced by rb_arithmetic_sequence_extract().
VALUE rb_arithmetic_sequence_components_t::end |
"Right" or "highest" endpoint of the sequence.
Definition at line 55 of file enumerator.h.
Referenced by rb_arithmetic_sequence_extract().
int rb_arithmetic_sequence_components_t::exclude_end |
Whether the endpoint is open or closed.
Definition at line 57 of file enumerator.h.
Referenced by rb_arithmetic_sequence_extract().
VALUE rb_arithmetic_sequence_components_t::step |
Step between a sequence.
Definition at line 56 of file enumerator.h.
Referenced by rb_arithmetic_sequence_extract().