[Nitro] Who knows aspects?
Bryan Soto
bryan.a.soto at gmail.com
Wed Jun 28 20:36:15 EDT 2006
On 6/24/06, * William <william.full.moon at gmail.com> wrote:
> Does anyone have a really SIMPLE working example?
>
I'm not sure if you're looking for an example with or without Og.
Here's a simple example with no Og though.
==
#! /usr/bin/env ruby
require 'rubygems'
require 'facets/more/aspects'
class TT
include Aspects
pre :initialize do
$stderr.puts "Got called!"
end
end
Aspects.wrap(TT, :initialize)
TT.new
==
More information about the Nitro-general
mailing list