Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 281 Bytes
puts (0..2).first
# => 0
puts (0..2).last
# => 2
puts (0..2).exclude_end?
# => false
puts (0...2).exclude_end?
# => true
# TODO fix failure in fixnum.rb first
# puts (0..2).to_s
# # => 0..2
# puts (0..2).to_a
# # => 0
# # => 1
# # => 2
#
# puts (0...2).to_a
# # => 0
# # => 1
Jump to Line
Something went wrong with that request. Please try again.