[#4595] New block syntax — Daniel Amelang <daniel.amelang@...>

I'm really sorry if this isn't the place to talk about this. I've

25 messages 2005/03/21
[#4606] Re: New block syntax — "David A. Black" <dblack@...> 2005/03/21

Hi --

[#4629] Re: New block syntax — "Sean E. Russell" <ser@...> 2005/03/30

On Monday 21 March 2005 16:17, David A. Black wrote:

[#4648] about REXML::Encoding — speakillof <speakillof@...>

Hi.

15 messages 2005/03/31
[#4659] Re: about REXML::Encoding — "Sean E. Russell" <ser@...> 2005/04/04

On Thursday 31 March 2005 09:44, speakillof wrote:

Re: [patch] logger.rb - allowing logger to be innitialized in a single line

From: "Berger, Daniel" <Daniel.Berger@...>
Date: 2005-03-09 21:56:53 UTC
List: ruby-core #4546
Hi,

> -----Original Message-----
> From: Sam Roberts [mailto:sroberts@uniserve.com] 
> 
> Sure, how about some docs? :-)
> 
> Sam

Ok.  Also, I guess there is an attr_accessor for 'level' already, so we
don't need that.  I arranged the code and docs this way to keep with the
way the original author has them laid out:

227,235d226
<   # The log device (IO Handle or String).
<   attr_accessor :logdev
< 
<   # The number of old files to kee or frequency of rotation
<   attr_accessor :shift_age
< 
<   # The maximum logfile size
<   attr_accessor :shift_size
< 
241d231
<   #   Logger.new{ |log| ... }
256,258c246,247
<   # Creates and returns a Logger instance.  If a block is provided,
yields a Logger
<   # instance to the block which you can use to set attributes.
Attributes set this
<   # way will override any arguments passed to the constructor.
---
>   # Create an instance.  See Logger::LogDevice.new for more
information if
>   # required.
260,261d248
<   # See Logger::LogDevice.new for more information if required.
<   #
268d254
<     yield self if block_given?

Look good?

Regards,

Dan


In This Thread

Prev Next