Skip to content
Permalink
Browse files

Merge pull request #771 from kostya/regexp_conv

add Regexp#try_convert, hash
  • Loading branch information
alex committed Jun 25, 2013
2 parents 96d0242 + 3d4e70a commit 60c1f324a83c8b9f98257d9a35ff1ce3fbd8370e
@@ -24,6 +24,7 @@
load_bootstrap.call("process.rb")
load_bootstrap.call("range.rb")
load_bootstrap.call("random.rb")
load_bootstrap.call("regexp.rb")
load_bootstrap.call("string.rb")
load_bootstrap.call("symbol.rb")
load_bootstrap.call("thread.rb")
@@ -0,0 +1,13 @@
class Regexp
def to_regexp
self
end

def hash
to_s.hash
end

def self.try_convert(arg)
Topaz.try_convert_type(arg, Regexp, :to_regexp)
end
end

This file was deleted.

This file was deleted.

0 comments on commit 60c1f32

Please sign in to comment.
You can’t perform that action at this time.