D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
MatchData
/
Filename :
values_at-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Uses each <em>index</em> to access the matching values, returning an array of the corresponding matches. - !ruby/struct:SM::Flow::VERB body: " m = /(.)(.)(\\d+)(\\d)/.match("THX1138: The Movie")\n m.to_a #=> ["HX1138", "H", "X", "113", "8"]\n m.values_at(0, 2, -2) #=> ["HX1138", "X", "113"]\n" full_name: MatchData#values_at is_singleton: false name: values_at params: | mtch.values_at([index]*) => array visibility: public