Sha256: 3155b45fc45d9ced4263176e7b412d2e21b753d7cd1f404d2e8274d3a11af094
Contents?: true
Size: 390 Bytes
Versions: 26
Compression:
Stored size: 390 Bytes
Contents
class Range # A thing really should know itself. # This simply returns _self_. def to_r self end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCRange < Test::Unit::TestCase def test_to_r a = (0..10) assert_equal( a, a.to_r ) end end =end
Version data entries
26 entries across 26 versions & 1 rubygems