[Rg 65] Re: Global.tidy does not work anymore?

Michael Fellinger m.fellinger at gmail.com
Tue Jul 24 23:27:55 EDT 2007


On 7/25/07, Lars Olsson <lasso at lassoweb.se> wrote:
> Hi!
>
> According to the docs the following code should activate the tidy
> functionality:
>
> include Ramaze::Tool::Tidy
> Global.tidy = true
>
>
> When running this code I get:
> main.rb:44: undefined method `tidy=' for
> #<Ramaze::GlobalStruct:0x2aaaac34fec8> (NoMethodError)
>
> Any ideas about what might be wrong?

I'm right now updating the rdoc, must be stale information.
We had to remove support for tidy because it has a serious memoryleak.
If you want to activate it still, try:

Ramaze::Dispatcher::Action::FILTER << Ramaze::Tool::Tidy
Ramaze::Tool::Tidy.trait[:enable] = true

you might have to adjust some of the paths and options, but it all
should be clear when you take a look at the li/ramaze/tool/tidy.rb
Sorry, i must have forgot about that in the announcement.

Another thing is, Global won't let you assign arbitrary keys anymore
since it's no OpenStruct. Hopefully that made reporting this faster :)
In future we will add deprecation-statements, so it's clear what
changed how and how to fix it.

^ manveru


More information about the Ramaze-general mailing list