Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/karist/patch/string.rb
Instance Method Summary collapse
-
#mutate(mutations) ⇒ Object
“_ -> x” = y “_from x” = y.
Instance Method Details
#mutate(mutations) ⇒ Object
“_ -> x” = y “_from x” = y
4 5 6 7 8 9 10 11 12 |
# File 'lib/karist/patch/string.rb', line 4 def mutate(mutations) case self.split("$") in ["", from] return mutations.dig_str(from, mutations) else end return self end |