Wrapping Up

In this chapter, you learned how to use templates to generate truly flexible output. In doing so, we separated our presentation logic from our business logic, just as we might when writing a web application.

We looked at the more advanced options we can pass through to ERB to alter its behavior, and how we can use variable bindings to pass data into our templates.

With this, we’ve reached the end of our exploration of text processing. We learned how to acquire text from any source, a host of techniques for processing that text once we’ve gotten it into our Ruby programs, and finally where we can write that transformed text once we’re finished.

With the techniques in this book, you should have built up a formidable data-wrangling arsenal and be capable of tackling the vast majority of text processing problems you’re likely to encounter. I hope you’ve found the book interesting and useful!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.149.222