Module Rufus
In: lib/rufus/dollar.rb

"made in Japan"

John Mettraux at openwfe.org

Methods

dsub  

Public Class methods

Performs ‘dollar substitution’ on a piece of text with a given dictionary.

  require 'rubygems'
  require 'rufus/dollar'

  h = {
    "name" => "Fred Brooke",
    "title" => "Silver Bullet"
  }

  puts Rufus::dsub "${name} wrote '${title}'", h
    # => "Fred Brooke wrote 'Silver Bullet'"

[Validate]