[前][次][番号順一覧][スレッド一覧]

ruby-reference-manual:580

From: sheepman <sheepman@s...>
Date: Wed, 14 Nov 2007 22:39:59 +0900
Subject: [ruby-reference-manual:580] Regexp のパッチ

よろしくお願いします。

Index: Regexp
===================================================================
--- Regexp      (revision 2257)
+++ Regexp      (working copy)
@@ -193,6 +193,17 @@

 #@end

+#@since 1.9.0
+--- try_convert(obj) -> re | nil
+#@todo
+
+Try to convert obj into a Regexp, using to_regexp method. Returns
+converted regexp or nil if obj cannot be converted for any reason.
+
+   Regexp.try_convert(/re/)      # => /re/
+   Regexp.try_convert("re")      # => nil
+#@end
+
 == Instance Methods

 --- =~(string) -> Fixnum | nil
@@ -445,6 +456,14 @@

 @see [[m:Regexp#to_s]]

+#@since 1.9.0
+--- encoding   -> Encoding
+#@todo
+
+Returns the Encoding object that represents the encoding of obj.
+
+#@end
+
 == Constants

 --- EXTENDED

-- 
sheepman / TAMURA Takashi
sheepman@s...

--
ML: ruby-reference-manual@m...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]