I know how to dynamically create methods and classes in Ruby, but is
there anyway to save these methods to a file?
eg. I’m looking for something like this:
define_method_in_file(“File.rb”, :myMethod) do
@a = “myString”
Thanks a lot for answering. I’m hoping there’s something easier than
having to mess about with templates.