Method: Range#initialize

Defined in:
lib/source/ruby.rb

#initialize(start, finish, exclusive = false) ⇒ Range

call-seq:

Range.new(start, end, exclusive=false) -> range

Constructs a range using the given start and end. If exclusive is omitted or is false, the range will include the end object; otherwise, it will be excluded.



4843
4844
4845
4846
4847
# File 'lib/source/ruby.rb', line 4843

def initialize(start,finish,exclusive=false)
  `this.__start__=start`
  `this.__end__=finish`
  `this.__exclusive__=exclusive`
end