Header: mruby/range.h
Overview
Range class
Function Summary collapse
-
struct RRange* mrb_range_ptr(mrb_state *, mrb_value)
-
mrb_value mrb_range_new(mrb_state *, mrb_value, mrb_value, mrb_bool)
Initializes a Range.
-
mrb_int mrb_range_beg_len(mrb_state *, mrb_value, mrb_int *, mrb_int *, mrb_int, mrb_bool)
Define Summary
- #define MRUBY_RANGE_H
- #define mrb_range_raw_ptr
- #define mrb_range_value
Function Details
struct RRange* mrb_range_ptr(mrb_state * mrb, mrb_value v)
mrb_value mrb_range_new(mrb_state * mrb, mrb_value start, mrb_value end, mrb_bool exclude)
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.