D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Regexp
/
Filename :
options-i.ri
back
Copy
U:RDoc::AnyMethod[iI"options:ETI"Regexp#options;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BReturns an integer whose bits show the options set in +self+.;To:RDoc::Markup::BlankLine o; ; [I"The option bits are:;T@o:RDoc::Markup::Verbatim; [I"Regexp::IGNORECASE # => 1 ;TI"Regexp::EXTENDED # => 2 ;TI"Regexp::MULTILINE # => 4 ;T:@format0o; ; [I"Examples:;T@o;; [ I"/foo/.options # => 0 ;TI"/foo/i.options # => 1 ;TI"/foo/x.options # => 2 ;TI"/foo/m.options # => 4 ;TI"/foo/mix.options # => 7 ;T; 0o; ; [I"CNote that additional bits may be set in the returned integer; ;TI"Fthese are maintained internally in +self+, are ignored if passed ;TI"5to Regexp.new, and may be ignored by the caller:;T@o; ; [ I"DReturns the set of bits corresponding to the options used when ;TI"Ccreating this regexp (see Regexp::new for details). Note that ;TI"Hadditional bits may be set in the returned options: these are used ;TI"Einternally by the regular expression code. These extra bits are ;TI"6ignored if the options are passed to Regexp::new:;T@o;; [ I"5r = /\xa1\xa2/e # => /\xa1\xa2/ ;TI"7r.source # => "\\xa1\\xa2" ;TI"-r.options # => 16 ;TI"4Regexp.new(r.source, r.options) # => /\xa1\xa2/;T; 0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"options -> integer ;T0[ I"();T@3FI"Regexp;TcRDoc::NormalClass00