There's a whole world of language features that we sometimes miss out on as Rubyists, such as pattern matching, S-expressions, and external domain-specific languages. But the good news is that we can have them, too, as long as we're not afraid to steal a few things first.
Broadly speaking, there are two ways to create a DSL. One is to invent a syntax from scratch, and build an interpreter or compiler. The other is to tailor an existing general-purpose language by adding or changing methods, operators, and default actions. This article explores using the latter method to build a DSL on top of Ruby.
James Britt welcomes all to Ruby Code & Style and offers his views on what makes it so special.
A modular architecture allows users to create modules that conform to well-described APIs and plug them into the application to extend the functionality.
This article shows one way to create a modular API in Ruby.
In this article, Austin Ziegler introduces the creation of a variety of types of documents with PDF::Writer for Ruby. This introduction covers basic creation, partial document generation and customization, and Rails-generated documents.
Ruby Queue software package lowers the barriers scientists need to overcome in order to realize the power of Linux clusters. The toolset is designed with a K.I.S.S,
research focused, philosophy that enables any ordinary (non-root) user to set
up a zero-admin Linux cluster in 10 minutes or less.
David Heinemeier Hansson
Mauricio Julio Fernandez Pradier
why the lucky stiff
Subscribe to be notified of new articles published in
Ruby Code & Style via RSS.