Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/utils.rb
Overview
String class
Instance Method Summary collapse
-
#subreplace(tokens) ⇒ Object
:nodoc:.
Instance Method Details
#subreplace(tokens) ⇒ Object
:nodoc:
480 481 482 |
# File 'lib/utils.rb', line 480 def subreplace (tokens) gsub(/#{tokens.keys.join("|")}/) { tokens[$&] } end |