[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:

[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>

This patch adds support to Net::POP for doing POP over SSL. Modeled on how

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

Re: RDoc proporsal

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2004-03-12 04:18:00 UTC
List: ruby-core #2655
Sorry, it didn't work...

<i>...</i> seems only work in the line which starts after 2 speces.

File.fnmatch(...) is in <pre> block, and <i> is treated as ordinary characters.

Thank you,

Yamamoto.

////////////////////////////////////////////
// RDoc

/*
 *  call-seq:
 *     File.fnmatch( pattern, path, [flags] ) => (true or false)
 *     File.fnmatch?( pattern, path, [flags] ) => (true or false)
 *
 *  Returns true if <i>path</i> matches against <i>pattern</i> The
 *  pattern is not a regular expression; instead it follows rules
 *  similar to shell filename globbing. It may contain the following
 *  metacharacters:
 *
 *  <i>flags</i> is a bitwise OR of the <code>FNM_xxx</code> parameters.
 *  The same glob pattern and flags are used by <code>Dir::glob</code>.
 *
 *     File.fnmatch('cat',       'cat')        #=> true
 *     File.fnmatch('cat',       'category')   #=> false
 *     File.fnmatch('c{at,ub}s', 'cats')       #=> false
 *     File.fnmatch('c{at,ub}s', 'cubs')       #=> false
 *     File.fnmatch('c{at,ub}s', 'cat')        #=> false
 *
 *     File.fnmatch('c?t',    'cat')                       #=> true
 *     File.fnmatch('c\?t',   'cat')                       #=> false
 *     File.fnmatch('c??t',   'cat')                       #=> false
 *     File.fnmatch('c*',     'cats')                      #=> true
 *     File.fnmatch('c/*<i></i>/t', 'c/a/b/c/t')                 #=> true
 *     File.fnmatch('c*t',    'cat')                       #=> true
 *     File.fnmatch('c\at',   'cat')                       #=> true
 *     File.fnmatch('c\at',   'cat', File::FNM_NOESCAPE)   #=> false
 *     File.fnmatch('a?b',    'a/b')                       #=> true
 *     File.fnmatch('a?b',    'a/b', File::FNM_PATHNAME)   #=> false
 *
 *     File.fnmatch('*',   '.profile')                            #=> false
 *     File.fnmatch('*',   '.profile', File::FNM_DOTMATCH)        #=> true
 *     File.fnmatch('*',   'dave/.profile')                       #=> true
 *     File.fnmatch('*',   'dave/.profile', File::FNM_DOTMATCH)   #=> true
 *     File.fnmatch('*',   'dave/.profile', File::FNM_PATHNAME)   #=> false
 *     File.fnmatch('*<i></i>/*', 'dave/.profile', File::FNM_PATHNAME)   #=> false
 *     STRICT = File::FNM_PATHNAME | File::FNM_DOTMATCH
 *     File.fnmatch('*<i></i>/*', 'dave/.profile', STRICT)               #=> true
 */


////////////////////////////////////////////
// Generated HTML

				<div class="method-heading">

					<a href="File.src/M000025.html" target="Code" class="method-signature"
						onclick="popupCode('File.src/M000025.html');return false;">
					<span class="method-name">File.fnmatch( pattern, path, [flags] ) => (true or false)<br />
File.fnmatch?( pattern, path, [flags] ) => (true or false)<br />
</span>
					</a>
				</div>
			
				<div class="method-description">
					<p>
Returns true if <em>path</em> matches against <em>pattern</em> The pattern
is not a regular expression; instead it follows rules similar to shell
filename globbing. It may contain the following metacharacters:

</p>
<p>
<em>flags</em> is a bitwise OR of the <tt>FNM_xxx</tt> parameters. The same
glob pattern and flags are used by <tt>Dir::glob</tt>.
</p>
<pre>
   File.fnmatch('cat',       'cat')        #=&gt; true
   File.fnmatch('cat',       'category')   #=&gt; false
   File.fnmatch('c{at,ub}s', 'cats')       #=&gt; false
   File.fnmatch('c{at,ub}s', 'cubs')       #=&gt; false
   File.fnmatch('c{at,ub}s', 'cat')        #=&gt; false

</pre>
<p>
<em>hoge</em>
</p>
<pre>
   File.fnmatch('c?t',    'cat')                       #=&gt; true
   File.fnmatch('c\?t',   'cat')                       #=&gt; false
   File.fnmatch('c??t',   'cat')                       #=&gt; false
   File.fnmatch('c*',     'cats')                      #=&gt; true
   File.fnmatch('c/*&lt;i&gt;&lt;/i&gt;/t', 'c/a/b/c/t')                 #=&gt; true
   File.fnmatch('c*t',    'cat')                       #=&gt; true
   File.fnmatch('c\at',   'cat')                       #=&gt; true
   File.fnmatch('c\at',   'cat', File::FNM_NOESCAPE)   #=&gt; false
   File.fnmatch('a?b',    'a/b')                       #=&gt; true
   File.fnmatch('a?b',    'a/b', File::FNM_PATHNAME)   #=&gt; false

   File.fnmatch('*',   '.profile')                            #=&gt; false
   File.fnmatch('*',   '.profile', File::FNM_DOTMATCH)        #=&gt; true
   File.fnmatch('*',   'dave/.profile')                       #=&gt; true
   File.fnmatch('*',   'dave/.profile', File::FNM_DOTMATCH)   #=&gt; true
   File.fnmatch('*',   'dave/.profile', File::FNM_PATHNAME)   #=&gt; false
   File.fnmatch('*&lt;i&gt;&lt;/i&gt;/*', 'dave/.profile', File::FNM_PATHNAME)   #=&gt; false
   STRICT = File::FNM_PATHNAME | File::FNM_DOTMATCH
   File.fnmatch('*&lt;i&gt;&lt;/i&gt;/*', 'dave/.profile', STRICT)               #=&gt; true

</pre>
				</div>
			</div>



In This Thread