class String

Public Instance Methods

aho() click to toggle source
# File lib/punctuation_marks_gem.rb, line 9
def aho
  text_array = ["アホ", "ボケ"]
  self.gsub!(/、/, text_array[rand(2)] + "\n")
  self.gsub!(/。/, text_array[rand(2)] + "\n")
end