class String

Constants

ALPHABET
CONSONANTS
VOWELS

Public Instance Methods

namna_sub() click to toggle source
# File lib/namna/string.rb, line 6
def namna_sub
  case self
  when '?'
    ALPHABET.sample
  when '*'
    VOWELS.sample
  when '#'
    CONSONANTS.sample
  else
    self
  end
end