Module: Interpolique::InterpoliqueSql::ClassMethods
- Defined in:
- lib/interpolique.rb
Instance Method Summary collapse
Instance Method Details
#b(string, context) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/interpolique.rb', line 9 def b(string, context) string.gsub /\^\{(.*?)\}/ do |s| val = context.eval(s[2..-2]) "b64d(\"#{Base64.encode64(val).strip}\")" end end |