X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/MatchData
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
MatchData
/
📄
%5b%5d-i.yaml
(984 B)
ðŸ“
..
📄
begin-i.yaml
(476 B)
📄
captures-i.yaml
(551 B)
📄
cdesc-MatchData.yaml
(1.39 KB)
📄
end-i.yaml
(500 B)
📄
inspect-i.yaml
(699 B)
📄
length-i.yaml
(456 B)
📄
offset-i.yaml
(494 B)
📄
post_match-i.yaml
(514 B)
📄
pre_match-i.yaml
(491 B)
📄
pretty_print-i.yaml
(182 B)
📄
select-i.yaml
(561 B)
📄
size-i.yaml
(452 B)
📄
string-i.yaml
(434 B)
📄
to_a-i.yaml
(980 B)
📄
to_s-i.yaml
(394 B)
📄
values_at-i.yaml
(665 B)
Editing: to_a-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the array of matches. - !ruby/struct:SM::Flow::VERB body: " m = /(.)(.)(\\d+)(\\d)/.match("THX1138.")\n m.to_a #=> ["HX1138", "H", "X", "113", "8"]\n" - !ruby/struct:SM::Flow::P body: Because <tt>to_a</tt> is called when expanding <tt>*</tt><em>variable</em>, there's a useful assignment shortcut for extracting matched fields. This is slightly slower than accessing the fields directly (as an intermediate array is generated). - !ruby/struct:SM::Flow::VERB body: " all,f1,f2,f3 = *(/(.)(.)(\\d+)(\\d)/.match("THX1138."))\n all #=> "HX1138"\n f1 #=> "H"\n f2 #=> "X"\n f3 #=> "113"\n" full_name: MatchData#to_a is_singleton: false name: to_a params: | mtch.to_a => anArray visibility: public
Upload File
Create Folder