Method: Rust::Sequence#initialize
- Defined in:
- lib/rust/core/types/utils.rb
#initialize(min, max, step = 1) ⇒ Sequence
Creates a new sequence from min to max with a given step (default = 1).
19 20 21 22 23 |
# File 'lib/rust/core/types/utils.rb', line 19 def initialize(min, max, step=1) @min = min @max = max @step = step end |