diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi/util.rb | 4 | ||||
-rw-r--r-- | lib/csv.rb | 4 | ||||
-rw-r--r-- | lib/drb/drb.rb | 2 | ||||
-rw-r--r-- | lib/forwardable.rb | 4 | ||||
-rw-r--r-- | lib/ipaddr.rb | 4 | ||||
-rw-r--r-- | lib/net/imap.rb | 4 | ||||
-rw-r--r-- | lib/rubygems/commands/pristine_command.rb | 2 | ||||
-rw-r--r-- | lib/webrick/httpstatus.rb | 16 |
8 files changed, 20 insertions, 20 deletions
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb index a2bd066fe2..f6c25a9550 100644 --- a/lib/cgi/util.rb +++ b/lib/cgi/util.rb @@ -91,7 +91,7 @@ class CGI def CGI::escape_html(str) escapeHTML(str) end - + # Synonym for CGI::unescapeHTML(str) def CGI::unescape_html(str) unescapeHTML(str) @@ -145,7 +145,7 @@ class CGI def CGI::escape_element(str) escapeElement(str) end - + # Synonym for CGI::unescapeElement(str) def CGI::unescape_element(str) unescapeElement(str) diff --git a/lib/csv.rb b/lib/csv.rb index 45da2c9bd6..bd83a6de68 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -2342,8 +2342,8 @@ class CSV private - # - # Returns the encoding of the internal IO object or the +default+ if the + # + # Returns the encoding of the internal IO object or the +default+ if the # encoding cannot be determined. # def raw_encoding(default = Encoding::ASCII_8BIT) diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index bd148d5ad1..48e3537dfb 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -1382,7 +1382,7 @@ module DRb def alive? @thread.alive? end - + def here?(uri) @exported_uri.include?(uri) end diff --git a/lib/forwardable.rb b/lib/forwardable.rb index 2b71b904d0..7a42e914bc 100644 --- a/lib/forwardable.rb +++ b/lib/forwardable.rb @@ -177,7 +177,7 @@ module Forwardable # Define +method+ as delegator instance method with an optional # alias name +ali+. Method calls to +ali+ will be delegated to - # +accessor.method+. + # +accessor.method+. # # class MyQueue # extend Forwardable @@ -185,7 +185,7 @@ module Forwardable # def initialize # @queue = [] # end - # + # # def_delegator :@queue, :push, :mypush # end # diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb index b6bea19832..716ccaad40 100644 --- a/lib/ipaddr.rb +++ b/lib/ipaddr.rb @@ -392,7 +392,7 @@ class IPAddr return self end - # Set current netmask to given mask. + # Set current netmask to given mask. def mask!(mask) if mask.kind_of?(String) if mask =~ /^\d+$/ @@ -626,7 +626,7 @@ unless Socket.const_defined? "AF_INET6" # Returns a +String+ based representation of a valid DNS hostname, # IPv4 or IPv6 address. - # + # # IPSocket.getaddress 'localhost' #=> "::1" # IPSocket.getaddress 'broadcasthost' #=> "255.255.255.255" # IPSocket.getaddress 'www.ruby-lang.org' #=> "221.186.184.68" diff --git a/lib/net/imap.rb b/lib/net/imap.rb index d4336f7ec3..ab77be4fb9 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -299,7 +299,7 @@ module Net def self.default_port return PORT end - + # The default port for IMAPS connections, port 993 def self.default_tls_port return SSL_PORT @@ -1140,7 +1140,7 @@ module Net @tagged_response_arrival.broadcast @continuation_request_arrival.broadcast if @idle_done_cond - @idle_done_cond.signal + @idle_done_cond.signal end end end diff --git a/lib/rubygems/commands/pristine_command.rb b/lib/rubygems/commands/pristine_command.rb index 83e6cc7a67..e3771b7212 100644 --- a/lib/rubygems/commands/pristine_command.rb +++ b/lib/rubygems/commands/pristine_command.rb @@ -96,7 +96,7 @@ extensions. # TODO use installer options install_defaults = Gem::ConfigFile::PLATFORM_DEFAULTS['install'] installer_env_shebang = install_defaults.to_s['--env-shebang'] - + installer = Gem::Installer.new(gem, :wrappers => true, :force => true, diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb index 37a36faa94..afc8e75a47 100644 --- a/lib/webrick/httpstatus.rb +++ b/lib/webrick/httpstatus.rb @@ -27,13 +27,13 @@ module WEBrick class << self attr_reader :code, :reason_phrase # :nodoc: end - + # Returns the HTTP status code def code() self::class::code end - + # Returns the HTTP status description def reason_phrase() self::class::reason_phrase end - + alias to_i code # :nodoc: end @@ -146,31 +146,31 @@ module WEBrick def info?(code) code.to_i >= 100 and code.to_i < 200 end - + ## # Is +code+ a successful status? def success?(code) code.to_i >= 200 and code.to_i < 300 end - + ## # Is +code+ a redirection status? def redirect?(code) code.to_i >= 300 and code.to_i < 400 end - + ## # Is +code+ an error status? def error?(code) code.to_i >= 400 and code.to_i < 600 end - + ## # Is +code+ a client error status? def client_error?(code) code.to_i >= 400 and code.to_i < 500 end - + ## # Is +code+ a server error status? def server_error?(code) |