Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/namna/string.rb
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#namna_sub ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# 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 |