🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #190

Re: Ruby i dekorator

#190
From: Przemysław Kowalczyk
Date: Wed, 13 Sep 2006 21:22
11 lines
1183 bytes
On Thu, 07 Sep 2006 12:43:28 +0200, Jaroslaw Zabiello  
<hipertracker@gmail.com> wrote:

> Jak w Ruby zaimplementować pythonowy dekorator? A może jest jakaś metoda
> która wyciąga całe ciało funkcji? Chcę coś dodać przed nim i po nim..

moze to pomoze:  
http://swik.net/Ruby/Code+Snippets:+ruby/Partial+Mock+Object+or+mocking+an+instance+of+an+object./cimp

pzdr
	szeryf
Technical Details
Message-ID: <op.tft5n5nqhwe0a4@negative-361apc>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
References: <re7vnvdwaxef.1xsf47isecttl$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
From: Przemysław Kowalczyk <szeryf@negativeiq.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: Ruby i dekorator
Date: Wed, 13 Sep 2006 23:22:43 +0200
Organization: CI TASK http://www.task.gda.pl/
Lines: 11
Message-ID: <op.tft5n5nqhwe0a4@negative-361apc>
References: <re7vnvdwaxef.1xsf47isecttl$.dlg@40tude.net>
NNTP-Posting-Host: xdsl-10757.wroclaw.dialog.net.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1158182804 3961 84.40.237.5 (13 Sep 2006 21:26:44 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Wed, 13 Sep 2006 21:26:44 +0000 (UTC)
User-Agent: Opera M2/8.02 (Win32, build 7680)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit