Method: BCDice::GameSystem::Gorilla#change_text
- Defined in:
- lib/bcdice/game_system/Gorilla.rb
#change_text(string) ⇒ Object
26 27 28 29 |
# File 'lib/bcdice/game_system/Gorilla.rb', line 26 def change_text(string) string = string.gsub(/^(S)?G/i) { "#{Regexp.last_match(1)}2D6" } return string end |