Forum: Ruby on Rails (announce) Engines 1.2 plugin creation tutorial

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A6030ddd9d3caaa00dd6c2047ecb3a89?d=identicon&s=25 Gwyn Morfey (Guest)
on 2007-03-07 15:51
(Received via mailing list)
I've just written a tutorial on writing plugins that use the Engines
1.2 plugin. The latest release of Engines changes quite a few things,
and while they're all documented in the rdoc, I've pulled them
together into a more easily-digestible format for beginners.

It's at http://gwyn.dezyne.net/page/writing_a_plugin_with_engines_ .

I've also released a plugin called Macaque, which is a brutally simple
wiki. It's at http://gwyn.dezyne.net/page/macaque .

I'd be interested in feedback on either or both.

Cheers,

Gwyn.
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2007-03-08 10:33
(Received via mailing list)
Looks nice Gwyn,

One suggestion though. I'd go for

  module Macaque
    mattr_accessor :option
    self.option = "something'
  end

rather than

  @@option = "something"

since it's better to work with the interface that mattr_accessor
guarantees, rather than relying on how it's implemented :)

James
A6030ddd9d3caaa00dd6c2047ecb3a89?d=identicon&s=25 Gwyn Morfey (Guest)
on 2007-03-08 11:01
(Received via mailing list)
>     mattr_accessor :option
>     self.option = "something'
Done - thanks.

Gwyn.
0bcc972918891ef358b0b3dfb4e7f18b?d=identicon&s=25 Hammed Malik (Guest)
on 2007-03-08 13:50
(Received via mailing list)
Hey Gwyn,

It's useful to have all this information in one place. Thanks!

Hammed
This topic is locked and can not be replied to.