Trans
7/13/2006 2:37:00 AM
ara.t.howard@noaa.gov wrote:
>
> DB = Prototype.new{
> host 'localhost'
> port 4242
>
> def connect() 'do something' end
>
> def inspect() [host, port].join ':' end
> }
Why no go the extra step?
DB = Prototype.new{
host 'localhost'
port 4242
connect does{ 'do something' }
inspect does{ [host, port].join ':' }
}
T.