ライブラリ
- ビルトイン (1170)
- benchmark (12)
- bigdecimal (19)
-
cgi
/ core (12) -
cgi
/ util (144) - coverage (7)
- csv (48)
- date (336)
- debug (12)
- digest (24)
-
drb
/ extservm (12) - e2mmap (12)
- erb (24)
- etc (24)
- fiddle (24)
-
fiddle
/ import (36) - ipaddr (12)
- irb (12)
-
irb
/ extend-command (12) - json (24)
-
json
/ add / ostruct (12) -
json
/ add / struct (12) - matrix (232)
-
minitest
/ unit (3) -
net
/ http (96) -
net
/ imap (60) -
net
/ pop (12) -
net
/ smtp (8) - open-uri (20)
- openssl (840)
- optparse (24)
- ostruct (12)
- psych (168)
- rake (36)
- rbconfig (24)
-
rdoc
/ markup (12) - readline (240)
- resolv (84)
-
rexml
/ document (144) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) -
ripper
/ lexer (36) -
rubygems
/ command (60) -
rubygems
/ defaults (108) -
rubygems
/ ext / builder (24) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ package / tar _ writer (24) -
rubygems
/ security (36) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (48) -
rubygems
/ source _ info _ cache _ entry (12) -
rubygems
/ specification (144) -
rubygems
/ user _ interaction (48) - scanf (6)
- securerandom (68)
- shell (18)
-
shell
/ builtin-command (6) -
shell
/ process-controller (48) - shellwords (36)
- socket (132)
- stringio (36)
- strscan (24)
-
test
/ unit (1) - time (24)
- tmpdir (24)
- tracer (276)
- tsort (58)
- uri (244)
-
webrick
/ httpauth / basicauth (12) -
webrick
/ httpauth / digestauth (12) -
webrick
/ httpservlet / abstract (24) -
win32
/ registry (132) - win32ole (36)
- zlib (108)
クラス
- Addrinfo (12)
- Array (12)
-
Benchmark
:: Report (12) - BigDecimal (19)
- CGI (156)
- CSV (48)
- Coverage (7)
-
DRb
:: ExtServManager (12) - Date (216)
- DateTime (120)
-
Digest
:: Base (24) - Dir (141)
- ERB (24)
- Encoding (24)
-
Encoding
:: Converter (12) -
Etc
:: Group (12) -
Etc
:: Passwd (12) -
Fiddle
:: CStruct (36) -
Fiddle
:: Function (12) -
Fiddle
:: Pointer (12) - File (156)
-
Gem
:: Command (60) -
Gem
:: Ext :: Builder (24) -
Gem
:: Installer (12) -
Gem
:: Package :: TarHeader (12) -
Gem
:: Package :: TarWriter :: BoundedStream (12) -
Gem
:: Package :: TarWriter :: RestrictedStream (12) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (48) -
Gem
:: SourceInfoCacheEntry (12) -
Gem
:: Specification (144) -
Gem
:: StreamUI (12) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - Hash (12)
- IO (180)
- IPAddr (12)
- IPSocket (12)
- Integer (4)
- Matrix (220)
-
MiniTest
:: Unit (2) -
Net
:: HTTP (96) -
Net
:: IMAP (60) -
Net
:: POP3 (12) -
Net
:: SMTP (8) -
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (48) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) -
OpenSSL
:: BN (24) -
OpenSSL
:: Cipher (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: Digest (12) -
OpenSSL
:: Digest :: DSS (24) -
OpenSSL
:: Digest :: DSS1 (24) -
OpenSSL
:: Digest :: MD2 (24) -
OpenSSL
:: Digest :: MD4 (24) -
OpenSSL
:: Digest :: MD5 (24) -
OpenSSL
:: Digest :: MDC2 (24) -
OpenSSL
:: Digest :: RIPEMD160 (24) -
OpenSSL
:: Digest :: SHA (24) -
OpenSSL
:: Digest :: SHA1 (24) -
OpenSSL
:: Digest :: SHA224 (24) -
OpenSSL
:: Digest :: SHA256 (24) -
OpenSSL
:: Digest :: SHA384 (24) -
OpenSSL
:: Digest :: SHA512 (24) -
OpenSSL
:: Engine (12) -
OpenSSL
:: HMAC (24) -
OpenSSL
:: PKCS7 (12) -
OpenSSL
:: PKey :: EC (12) -
OpenSSL
:: X509 :: Attribute (24) -
OpenSSL
:: X509 :: Name (36) - OpenStruct (24)
- OptionParser (12)
-
OptionParser
:: ParseError (12) -
Psych
:: Nodes :: Mapping (12) -
Psych
:: Nodes :: Scalar (12) -
Psych
:: Nodes :: Sequence (12) -
Psych
:: Nodes :: Stream (12) -
Psych
:: Stream (12) -
Psych
:: TreeBuilder (12) -
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Markup (12) -
REXML
:: Attribute (24) -
REXML
:: Attributes (12) -
REXML
:: CData (12) -
REXML
:: Comment (12) -
REXML
:: DocType (12) -
REXML
:: Document (12) -
REXML
:: Entity (12) -
REXML
:: Formatters :: Transitive (12) -
REXML
:: Instruction (12) -
REXML
:: Parsers :: PullParser (12) -
REXML
:: Parsers :: StreamParser (12) -
REXML
:: Parsers :: UltraLightParser (12) -
REXML
:: Text (24) -
Rake
:: FileTask (12) -
Rake
:: Task (12) - Random (17)
- Regexp (72)
- Resolv (48)
-
Resolv
:: DNS :: Name (12) -
Resolv
:: DNS :: Resource :: SOA (12) -
Resolv
:: DNS :: Resource :: TXT (12) - Ripper (36)
-
RubyVM
:: InstructionSequence (116) -
Scanf
:: FormatString (6) - Shell (18)
-
Shell
:: Echo (6) -
Shell
:: ProcessController (48) - Socket (84)
- String (43)
- StringIO (36)
- StringScanner (24)
- Struct (76)
- Time (24)
- TracePoint (35)
- Tracer (288)
- UNIXSocket (24)
-
URI
:: FTP (24) -
URI
:: Generic (24) -
URI
:: HTTP (12) -
URI
:: LDAP (12) -
URI
:: MailTo (12) - Vector (12)
-
WEBrick
:: Cookie (36) -
WEBrick
:: HTTPAuth :: BasicAuth (12) -
WEBrick
:: HTTPAuth :: DigestAuth (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (24) - WIN32OLE (12)
-
WIN32OLE
_ TYPE (24) -
Win32
:: Registry (120) -
Win32
:: Registry :: PredefinedKey (12) -
Zlib
:: Deflate (24) -
Zlib
:: GzipWriter (60) -
Zlib
:: Inflate (12) -
Zlib
:: ZStream (12)
モジュール
- Exception2MessageMapper (12)
- GC (36)
-
GC
:: Profiler (12) - Gem (108)
-
Gem
:: Security (24) - IRB (12)
-
IRB
:: ExtendCommandBundle (12) - JSON (12)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - MiniTest (1)
- OpenURI (12)
- Process (12)
- Psych (84)
- Rake (12)
- RbConfig (24)
- Readline (144)
-
RubyVM
:: AbstractSyntaxTree (30) -
RubyVM
:: MJIT (7) - SecureRandom (68)
- Shellwords (36)
- TSort (58)
-
Test
:: Unit (1) - URI (168)
オブジェクト
- ENV (199)
-
Readline
:: HISTORY (96) - main (10)
キーワード
- << (12)
- I (12)
- [] (60)
- []= (12)
-
_ httpdate (12) -
_ iso8601 (12) -
_ jisx0301 (12) -
_ load (24) -
_ parse (12) -
_ rfc2822 (12) -
_ rfc3339 (12) -
_ rfc822 (12) -
_ strptime (24) -
_ xmlschema (12) -
absolute
_ path (12) - accept (12)
-
accept
_ charset (12) - activate (6)
-
active
_ process _ controllers (6) -
add
_ filter (24) -
add
_ specific _ extra _ args (12) -
add
_ trusted _ cert (12) - alphanumeric (8)
-
array
_ attribute (12) -
array
_ attributes (12) -
asciicompat
_ encoding (12) - attribute (12)
-
attribute
_ alias _ singular (12) -
attribute
_ defaults (12) -
attribute
_ names (12) - attributes (12)
- autorun (1)
- base64 (12)
- basename (12)
-
basic
_ quote _ characters (12) -
basic
_ quote _ characters= (12) -
basic
_ word _ break _ characters (12) -
basic
_ word _ break _ characters= (12) - binread (12)
- binwrite (12)
-
block
_ output _ synchronize (6) - build (24)
-
builtin
_ curves (12) - bytes (7)
- certs (12)
- children (16)
- ciphers (12)
-
class
_ name (12) - clone (12)
-
column
_ vector (12) - columns (12)
- combine (16)
- command (12)
- compile (24)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) -
completer
_ quote _ characters (12) -
completer
_ quote _ characters= (12) -
completer
_ word _ break _ characters (12) -
completer
_ word _ break _ characters= (12) -
completion
_ append _ character (12) -
completion
_ append _ character= (12) -
copy
_ stream (24) - create (24)
-
create
_ guid (12) -
create
_ id (12) -
debug
_ output _ try _ lock (6) - decode (7)
-
decode
_ utf7 (12) -
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) -
default
_ bindir (12) -
default
_ dir (12) -
default
_ exec _ format (12) -
default
_ path (12) -
default
_ record _ separator (6) -
default
_ sources (12) -
default
_ system _ source _ cache _ dir (12) -
default
_ user _ source _ cache _ dir (12) - deflate (12)
- delete (24)
-
delete
_ at (12) - diagonal (12)
- digest (192)
- dirname (12)
- disasm (12)
- disassemble (12)
-
display
_ c _ call (12) -
display
_ c _ call= (12) -
display
_ c _ call? (12) -
display
_ process _ id (12) -
display
_ process _ id= (12) -
display
_ process _ id? (12) -
display
_ thread _ id (12) -
display
_ thread _ id= (12) -
display
_ thread _ id? (12) - dump (12)
-
dump
_ stream (12) - each (36)
-
each
_ active _ object (6) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - elements (12)
- empty (12)
- encode (7)
-
encode
_ utf7 (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) - entries (24)
- escape (43)
- escapeElement (12)
- escapeHTML (12)
-
escape
_ element (12) -
escape
_ html (12) -
exec
_ format (12) - exit (12)
- extname (12)
-
extra
_ args (12) -
extra
_ args= (12) - extract (48)
- fetch (36)
-
filename
_ quote _ characters (12) -
filename
_ quote _ characters= (12) -
filter
_ backtrace (13) -
format
_ date (12) -
format
_ datetime (12) - from (12)
- ftype (12)
- generate (12)
-
generate
_ line (12) -
generate
_ prime (12) - get (24)
-
get
_ instance (12) - getaddress (24)
- getaddresses (12)
- gethostname (12)
- getname (12)
- getnames (12)
- getservbyport (12)
- getwd (12)
- glob (17)
- hex (12)
- hexdigest (180)
- home (24)
- hstack (12)
- httpdate (24)
- identity (12)
- inactivate (6)
- index (7)
- inflate (12)
- inspect (12)
-
installed
_ spec _ directories (12) -
irb
_ original _ method _ name (12) -
is
_ version _ 1 _ 2? (12) - iso8601 (24)
- jisx0301 (24)
- join (36)
-
json
_ create (36) - key (12)
- keys (12)
-
keyword
_ init? (4) -
last
_ match (12) -
latest
_ system _ cache _ file (12) -
latest
_ user _ cache _ file (12) - lex (12)
- load (12)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) -
load
_ stream (24) -
locale
_ charmap (12) -
make
_ passwd (24) - malloc (12)
- matches? (12)
- members (12)
- mktmpdir (12)
-
must
_ C _ version (12) -
name
_ list (12) - new (1071)
- new2 (12)
- normalize (12)
-
normalize
_ yaml _ input (12) - notify (6)
- ntop (12)
- of (22)
- off (12)
- on (24)
- open (80)
-
open
_ uri (12) -
original
_ dir (12) - output= (1)
-
pack
_ sockaddr _ in (12) -
pack
_ sockaddr _ un (12) - pair (12)
- parse (106)
-
parse
_ file (10) -
parse
_ openssl (12) -
parse
_ rfc2253 (12) -
parse
_ stream (36) - path (12)
- pause (7)
- pipe (24)
- pop (12)
- pretty (12)
- private (5)
-
process
_ controllers _ exclusive (6) - progids (12)
-
proxy
_ address (12) -
proxy
_ pass (12) -
proxy
_ user (12) - public (5)
- push (12)
- pwd (12)
- quote (12)
-
random
_ bytes (12) -
raw
_ seed (2) - read (36)
- readlines (36)
- readlink (12)
- realdirpath (12)
- realpath (12)
- redirector (12)
- register (12)
-
required
_ attribute (12) -
required
_ attribute? (12) -
required
_ attributes (12) - result (19)
-
rfc1123
_ date (12) - rfc2822 (24)
- rfc3339 (24)
- rfc822 (24)
-
row
_ vector (12) - rows (12)
- ruby (12)
-
ruby
_ engine (12) - scalar (12)
-
scope
_ name (24) -
set
_ get _ line _ procs (24) -
setup
_ argv (1) - shift (24)
- size (12)
- slice (12)
-
sockaddr
_ in (12) -
sockaddr
_ un (12) - socketpair (12)
-
specific
_ extra _ args (12) -
specific
_ extra _ args _ hash (12) - split (36)
- start (20)
- stat (11)
- stdout (12)
- stdout= (12)
-
stdout
_ mutex (12) - store (12)
- stress (12)
- stress= (12)
-
strongly
_ connected _ components (12) - strptime (48)
-
system
_ cache _ file (12) - time2wtime (12)
- tmpdir (12)
-
to
_ a (12) -
to
_ json (12) -
to
_ ptr (12) -
to
_ s (12) - tokenize (12)
- trace (12)
-
trace
_ func (12) - truncate (12)
-
trusted
_ cert _ path (12) -
try
_ convert (64) - type2name (12)
- typelibs (12)
- unescape (19)
- unescapeElement (12)
- unescapeHTML (12)
-
unescape
_ element (12) -
unescape
_ html (12) - unit (12)
- unix (12)
- unnormalize (12)
-
unpack
_ sockaddr _ un (12) -
unused
_ bits (12) -
unused
_ bits= (12) - urandom (8)
-
urlsafe
_ base64 (12) -
use
_ registry (12) -
user
_ cache _ file (12) -
user
_ dir (12) - uuid (12)
- values (12)
-
values
_ at (12) - ver (5)
- verbose (12)
- verbose= (12)
- verbose? (12)
-
verify
_ trust _ dir (12) - version (24)
-
version
_ 1 _ 2 (12) -
version
_ 1 _ 2? (12) - vstack (12)
-
wait
_ to _ finish _ all _ process _ controllers (6) - wrap (24)
- write (24)
-
write
_ smime (12) - wtime2time (12)
- xmlschema (24)
- zero (24)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (9201.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...ら埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binar... -
String
. try _ convert(obj) -> String | nil (9201.0) -
obj を String に変換しようと試みます。変換には Object#to_str メソッ ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ た場合は nil が返されます。
...obj を String に変換しようと試みます。変換には Object#to_str メソッ
ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ
た場合は nil が返されます。
@param obj 変換する任意のオブジェクト
@return......変換後の文字列または nil
//emlist[例][ruby]{
String.try_convert("str") # => "str"
String.try_convert(/re/) # => nil
//}... -
TracePoint
. trace(*events) {|obj| . . . } -> TracePoint (9201.0) -
新しい TracePoint オブジェクトを作成して自動的にトレースを開始し ます。TracePoint.new のコンビニエンスメソッドです。
...新しい TracePoint オブジェクトを作成して自動的にトレースを開始し
ます。TracePoint.new のコンビニエンスメソッドです。
@param events トレースするイベントを String か Symbol で任
意の数指定します。指定できる値に......ついては
TracePoint.new を参照してください。
//emlist[例][ruby]{
trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
# => #<TracePoint:0x007f786a452448>
trace.enabled? # => true
//}
@raise ThreadError ブロックを指定しなかった場合に発生し... -
Shell
:: ProcessController . active _ process _ controllers -> () (9101.0) -
@todo
@todo -
Shell
:: ProcessController . process _ controllers _ exclusive -> () (9101.0) -
@todo
@todo -
Shell
:: ProcessController . wait _ to _ finish _ all _ process _ controllers -> () (9101.0) -
@todo
@todo -
Tracer
. trace _ func(*vars) -> object | nil (9101.0) -
debug ライブラリの内部で使用します。
debug ライブラリの内部で使用します。 -
RubyVM
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node (6301.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@raise SyntaxError string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:......す。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定す......token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリーを生成します。
@raise SyntaxError string が Ruby のコードとして正しくない場......byVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# body:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (LIT@1:8-1:9 2) nil))))
pp RubyVM::AbstractSyntaxTree.parse("x = 1; p(x; y=2", error_tolerant: true)
# =>... -
RubyVM
:: AbstractSyntaxTree . parse(string , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (6301.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...す。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定す......token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリーを生成します。
@raise SyntaxError string が Ruby のコードとして正しくない場......byVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# body:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (LIT@1:8-1:9 2) nil))))
pp RubyVM::AbstractSyntaxTree.parse("x = 1; p(x; y=2", error_tolerant: true)
# =>... -
URI
. extract(str) -> [String] (6301.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......えられた場合は String#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete です。
@param str 文字列を与えま......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]... -
URI
. extract(str) {|uri _ str| . . . } -> nil (6301.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......えられた場合は String#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete です。
@param str 文字列を与えま......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]... -
URI
. extract(str , schemes) -> [String] (6301.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......えられた場合は String#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete です。
@param str 文字列を与えま......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]...