a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment
Orth  ·  3473 days ago  ·  link  ·    ·  parent  ·  post: Dynamically Declaring Functions and Methods

I haven't used Ruby for much, but from what I remember learning it, it has the ability to do what you want. Found an article on it. Reading that article, it gives a VERY basic example. A search for "dynamic methods ruby" gets a lot of results.