lib/rio/if/test.rb in rio-0.4.2 vs lib/rio/if/test.rb in rio-0.5.1
- old
+ new
@@ -1,8 +1,9 @@
+# -*- coding: utf-8 -*-
#--
-# ===============================================================================
-# Copyright (c) 2005,2006,2007,2008 Christopher Kleckner
+# ===========================================================================
+# Copyright (c) 2005-2012 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -16,26 +17,13 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rio; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-# ===============================================================================
+# ===========================================================================
#++
#
-# To create the documentation for Rio run the command
-# ruby build_doc.rb
-# from the distribution directory.
-#
-# Suggested Reading
-# * RIO::Doc::SYNOPSIS
-# * RIO::Doc::INTRO
-# * RIO::Doc::HOWTO
-# * RIO::Doc::EXAMPLES
-# * RIO::Rio
-#
-
-
module RIO
module IF
module Test
# Calls FileTest#blockdev?
# rio('afile').blockdev? => true or false
@@ -87,11 +75,11 @@
# call-seq:
# fnmatch?( pattern, [flags] ) => (true or false)
#
# Calls File#fnmatch?
#
- # Returns true if IF::Path#path matches <i>pattern</i>. The
+ # Returns true if {#path}[rdoc-ref:IF::Path#path] matches <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.
@@ -122,12 +110,12 @@
#
def fnmatch?(*args) target.fnmatch?(*args) end
# Calls File#ftype
#
- # Identifies the type of the named file; the return string is one of 'file�, 'directory�,
- # 'characterSpecial�, 'blockSpecial�, 'fifo�, 'link�, 'socket�, or 'unknown�.
+ # Identifies the type of the named file; the return string is one of 'file�, 'directory�,
+ # 'characterSpecial�, 'blockSpecial�, 'fifo�, 'link�, 'socket�, or 'unknown�.
def ftype(*args) target.ftype(*args) end
# Calls File#stat
def stat(*args) target.stat(*args) end
@@ -234,10 +222,10 @@
# rio('afile').zero? => true or false
# Returns +true+ if the named file exists and has a zero size.
def zero?(*args) target.zero?(*args) end
- # Returns true if the rio represents an absolute path or URI. Alias for IF::Test#absolute?
+ # Returns true if the rio represents an absolute path or URI. Alias for {#absolute?}[rdoc-ref:IF::Test#absolute?]
#
# rio('/tmp').abs? # >> true
# rio('.ssh').abs? # >> false
# rio('file:///tmp').abs? # >> true
# rio('http://www.ruby-doc.org/').abs? # >> true