Mini Shell
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns the array of captures; equivalent to <tt>mtch.to_a[1..-1]</tt>.
- !ruby/struct:SM::Flow::VERB
body: " f1,f2,f3,f4 = /(.)(.)(\\d+)(\\d)/.match("THX1138.").captures\n f1 #=> "H"\n f2 #=> "X"\n f3 #=> "113"\n f4 #=> "8"\n"
full_name: MatchData#captures
is_singleton: false
name: captures
params: |
mtch.captures => array
visibility: public
Zerion Mini Shell 1.0