This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG.txt | Tue Feb 03 16:33:37 -0800 2009 | |
| |
LICENSE.txt | Sun Apr 06 21:30:43 -0700 2008 | |
| |
README.txt | Tue Feb 03 16:33:37 -0800 2009 | |
| |
Rakefile | Tue Feb 03 16:33:37 -0800 2009 | |
| |
lib/ | Tue Feb 03 16:33:37 -0800 2009 | |
| |
test/ | Tue Feb 03 16:33:37 -0800 2009 |
README.txt
= rufus-dollar
A one-method library for substituting ${stuff} in text strings.
== getting it
sudo gem install rufus-dollar
or at
http://rubyforge.org/frs/?group_id=4812
== usage
require 'rubygems'
require 'rufus/dollar'
h = {
'name' => 'Fred Brooks',
'title' => 'Silver Bullet',
'left' => 'na',
'right' => 'me',
}
puts Rufus::dsub "${name} wrote '${title}'", h
# => "Fred Brooks wrote 'Silver Bullet'"
# dollar notations are nestable
puts Rufus::dsub "${${left}${right}}", h
# => "${name}" => "Fred Brooks"
== dependencies
None.
== mailing list
On the rufus-ruby list[http://groups.google.com/group/rufus-ruby] :
http://groups.google.com/group/rufus-ruby
== issue tracker
http://rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse
== source
http://github.com/jmettraux/rufus-dollar
git clone git://github.com/jmettraux/rufus-dollar.git
== author
John Mettraux, jmettraux@gmail.com
http://jmettraux.wordpress.com
== the rest of Rufus
http://rufus.rubyforge.org
== license
MIT







