Method: String#^
- Defined in:
- lib/core/string.rb
#^(h = {}) ⇒ Object
14 15 16 |
# File 'lib/core/string.rb', line 14 def ^(h={}) self.gsub(/:([\w]+)/) {h[$1.to_sym] if h.include?($1.to_sym)} end |
14 15 16 |
# File 'lib/core/string.rb', line 14 def ^(h={}) self.gsub(/:([\w]+)/) {h[$1.to_sym] if h.include?($1.to_sym)} end |