[Chirb] Question...
Nate Kirby
natebkirby at yahoo.com
Sun Jun 29 21:36:58 EDT 2008
All,
I feel kind of like a ruby nubie saying this, but all of my work in ruby
has been in rails. I just got some work that does not require rails.
When I work in rails, whenever metaprogramming is used to change the
behavior of say String#length, it has gone in application.rb, so all
those kinds of behavoir changes have been easy to locate. However, now,
when working without rails, these kinds of things go... well I assume
there must be a ruby convention for this. I have found
http://rubygarden.org/ruby/page/show/RubyStyleGuide and
http://blog.jayfields.com/2007/01/class-reopening-hints.html but am
unsure that the real ruby convention for changing a previously defined
classes' behavior is clear.
Does anyone out there know the right answer? Where do class
redefinitions go according to ruby conventions?
TIA,
Nate
More information about the ChicagoGroup-Members-List
mailing list