Method: Rust::Sequence#initialize
- Defined in:
- lib/rust/core/types/utils.rb
#initialize(min, max, step = 1) ⇒ Sequence
Returns a new instance of Sequence.
12 13 14 15 16 |
# File 'lib/rust/core/types/utils.rb', line 12 def initialize(min, max, step=1) @min = min @max = max @step = step end |