1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/logger.rb: format comments to keep 80 columns in a line.

* lib/uri/common.rb: ditto.
  * lib/uri/ftp.rb: ditto.
  * lib/uri/ldap.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2011-05-13 12:54:57 +00:00
parent a55d803ed3
commit 58355ea52a
4 changed files with 11 additions and 8 deletions

View file

@ -224,7 +224,8 @@ class Logger
@default_formatter.datetime_format = datetime_format @default_formatter.datetime_format = datetime_format
end end
# Returns the date format (string passed to +strftime+) being used (it's set using datetime_format=) # Returns the date format (string passed to +strftime+) being used (it's set
# using datetime_format=)
def datetime_format def datetime_format
@default_formatter.datetime_format @default_formatter.datetime_format
end end
@ -305,8 +306,8 @@ class Logger
# +message+:: # +message+::
# The log message. A String or Exception. # The log message. A String or Exception.
# +progname+:: # +progname+::
# Program name string. Can be omitted. Treated as a message if no +message+ and # Program name string. Can be omitted. Treated as a message if no
# +block+ are given. # +message+ and +block+ are given.
# +block+:: # +block+::
# Can be omitted. Called to get a message string if +message+ is nil. # Can be omitted. Called to get a message string if +message+ is nil.
# #

View file

@ -290,7 +290,8 @@ module URI
# #
# == Description # == Description
# #
# constructs a safe String from +str+, removing unsafe characters, replacing them with codes. # constructs a safe String from +str+, removing unsafe characters,
# replacing them with codes.
# #
def escape(str, unsafe = @regexp[:UNSAFE]) def escape(str, unsafe = @regexp[:UNSAFE])
unless unsafe.kind_of?(Regexp) unless unsafe.kind_of?(Regexp)

View file

@ -47,8 +47,8 @@ module URI
# alternate initialization # alternate initialization
# Creates a new URI::FTP object. # Creates a new URI::FTP object.
# #
# Unlike build(), this method does not escape the path component as required by # Unlike build(), this method does not escape the path component as
# RFC1738; instead it is treated as per RFC2396. # required by RFC1738; instead it is treated as per RFC2396.
# #
# Arguments are user, password, host, port, path, typecode, # Arguments are user, password, host, port, path, typecode,
# and arg_check, in that order. # and arg_check, in that order.

View file

@ -37,8 +37,9 @@ module URI
# Scopes available for the starting point. # Scopes available for the starting point.
# #
# * SCOPE_BASE - the Base DN # * SCOPE_BASE - the Base DN
# * SCOPE_ONE - one level under the Base DN, not including the base DN and not including any entries under this. # * SCOPE_ONE - one level under the Base DN, not including the base DN and
# * SCOPE_SUB - subtress, all entries at all levels # not including any entries under this.
# * SCOPE_SUB - subtress, all entries at all levels
# #
SCOPE = [ SCOPE = [
SCOPE_ONE = 'one', SCOPE_ONE = 'one',