Sha256: d36749e7b2877b89d9d53aa9d9a3fb0895a569704036046d8d79be85e20b789a
Contents?: true
Size: 534 Bytes
Versions: 26
Compression:
Stored size: 534 Bytes
Contents
class Regexp # Like #to_re, but following Ruby's formal definitions, # only a Regular expression type object will respond to this. # # Note: To be of much real use this should be defined in core Ruby. def to_regexp self end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCRegexp < Test::Unit::TestCase def test_to_regexp r = /0..10/ assert_equal( r, r.to_regexp ) end end =end
Version data entries
26 entries across 26 versions & 1 rubygems