Header: mruby/range.h
Overview
Range class
Function Summary collapse
-
mrb_value mrb_range_new(mrb_state *, mrb_value, mrb_value, mrb_bool)
Initializes a Range.
- mrb_bool mrb_range_beg_len(mrb_state *, mrb_value, mrb_int *, mrb_int *, mrb_int)
Define Summary
- #define MRUBY_RANGE_H
- #define mrb_range_ptr
- #define mrb_range_value
Function Details
mrb_value mrb_range_new(mrb_state * mrb, mrb_value start, mrb_value end, mrb_bool exclusive)
Initializes a Range.
If the third parameter is FALSE then it includes the last value in the range. If the third parameter is TRUE then it excludes the last value in the range.