Class | Flukso::FluksoDB |
In: |
lib/flukso/database.rb
|
Parent: | Object |
See: freshmeat.net/articles/templates-in-ruby template: Returns a string formed from a template and replacement values
templateStr - The template string (format shown below) values - A hash of replacement values
Example format:
"Dear :::customer:::,\nPlease pay us :::amount:::.\n"
The "customer" and "amount" strings are used as keys to index against the values hash.
Avoid redundant code. Takes a block and executes it on the query data. See innig.net/software/ruby/closures-in-ruby.rb