Domain-Specific Languages

Ruby’s simple and powerful conceptual foundation allows for the creation of simple sub-languages called domain-specific languages.

Here’s an example from Rails:

class Firm < ActiveRecord::Base
  has_many   :clients
  has_one    :account
  belongs_to :conglomorate
end