github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jmettraux / rufus-dollar

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

${xxx} substitutions (ruby) — Read more

  cancel

http://rufus.rubyforge.org/rufus-dollar

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

cleanup 
jmettraux (author)
Tue Feb 03 16:33:37 -0800 2009
commit  231dd8a8463051eeb669d0d5565446839c6a458b
tree    600158bee7bfc68dc4565ba2743782fd6f27108e
parent  ed0635f2faad8c88551b0d61b26382fd67129a17
rufus-dollar /
name age
history
message
file CHANGELOG.txt Tue Feb 03 16:33:37 -0800 2009 cleanup [jmettraux]
file LICENSE.txt Sun Apr 06 21:30:43 -0700 2008 first git commit [jmettraux]
file README.txt Tue Feb 03 16:33:37 -0800 2009 cleanup [jmettraux]
file Rakefile Tue Feb 03 16:33:37 -0800 2009 cleanup [jmettraux]
directory lib/ Tue Feb 03 16:33:37 -0800 2009 cleanup [jmettraux]
directory test/ Tue Feb 03 16:33:37 -0800 2009 cleanup [jmettraux]
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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server