B
barjunk
Although this particular code is part of some goofing around I am
doing in with Rails, I have what I think is some specific ruby
questions. If I should take this to the rails list, please let me
know.
Alos, I am referencing pastie...if there is a better way for me to
have done this, that would be good to know as well.
So the main code is here: http://pastie.caboo.se/64700
So as you can see it is fairly straight forward. It seems to me that
it needs some refactoring.
This is where the problem comes in.
I'm fairly new to ruby and am hoping for some suggestions on how to
refactor this code.
My initial thought was to add another class called Role. Except I'm
not really sure what steps to take to make that happen.
I'm most interested in the thinking behind this process. You
experienced guys seem to just know the answers, but I'd like to know
what led you to whatever decision you made.
Maybe I'm not even asking the right questions here...but I know it
will be an adventure.
Thanks for any insight.
Mike B.
doing in with Rails, I have what I think is some specific ruby
questions. If I should take this to the rails list, please let me
know.
Alos, I am referencing pastie...if there is a better way for me to
have done this, that would be good to know as well.
So the main code is here: http://pastie.caboo.se/64700
So as you can see it is fairly straight forward. It seems to me that
it needs some refactoring.
This is where the problem comes in.
I'm fairly new to ruby and am hoping for some suggestions on how to
refactor this code.
My initial thought was to add another class called Role. Except I'm
not really sure what steps to take to make that happen.
I'm most interested in the thinking behind this process. You
experienced guys seem to just know the answers, but I'd like to know
what led you to whatever decision you made.
Maybe I'm not even asking the right questions here...but I know it
will be an adventure.
Thanks for any insight.
Mike B.