Re: How to parse ruby files programmatically
Xavier Noria <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAM=YcdicyZbjhrHGAWRD7zrJ8Qicm6WG8RNnhd7ar5+z-7F0zQ@mail.gmail.com> |
Depending on how generic is the input, that might be hard, think const_set(name, Class.new), eval STRING, etc. On Tue, 7 May 2019 at 14:20, Gerald Bauer <[email protected]> wrote: > Hello, > > You might just use some text patterns / regular expressions :-). > > For full-fledged parsers, see the Ruby Parser / Unparser section > in the Awesome Rubies page for some options. > > Happy coding with ruby. Cheers. Prost. > > [1] https://github.com/planetruby/awesome-rubies#ruby-parser--unparser > > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk> > -- Sent from Gmail Mobile Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>