diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-12 10:35:45 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-12 10:35:45 +0000 |
commit | ac39a3b330cbf7c4b65ba907783364b63fb109b3 (patch) | |
tree | e773d062644ecad55fcd0d48e505a882b0f94a82 /data/rbot/plugins/quotes.rb | |
parent | bf03d9f2b695772212abee81d405483c5c374633 (diff) |
Module\#define_structure method: define a new Struct only if doesn't exist already or if the attribute list changed
Diffstat (limited to 'data/rbot/plugins/quotes.rb')
-rw-r--r-- | data/rbot/plugins/quotes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/quotes.rb b/data/rbot/plugins/quotes.rb index 6851b65f..b5017a58 100644 --- a/data/rbot/plugins/quotes.rb +++ b/data/rbot/plugins/quotes.rb @@ -1,6 +1,6 @@ # GB: Ok, we *really* need to switch to db for this plugin too -Quote = Struct.new("Quote", :num, :date, :source, :quote) +define_structure :Quote, :num, :date, :source, :quote class QuotePlugin < Plugin def initialize |