Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic method calls

 
Bill Reiflin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a small program that dynamically calls methods such as column_name= from a hash. Pretty straight forward, except for the = part. I could store the = in the hash, but is ugly and might not always be in the method name.

This is what I have done, but it feels wrong:



Comments?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's pretty much it. I think I'd put that in Table's initializer though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic