Module: GeneralHelpers
- Defined in:
- lib/haiti.rb
Instance Method Summary collapse
Instance Method Details
#eval_curlies(string) ⇒ Object
8 9 10 |
# File 'lib/haiti.rb', line 8 def eval_curlies(string) string.gsub(/{{(.*?)}}/) { |match| eval match[2...-2] } end |