Guest User

Untitled

a guest
Apr 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def subkeywords
  2. arr = []
  3. arr += ( 'a' .. 'z' ).to_a unless self =~ /\d$/
  4. # arr += ('0'..'9').to_a #unless self =~ /(\d)([^_]+)$/
  5. # arr << ' ' unless self.include?(' ')
  6. return arr.map{|key| self+key}
  7. end
Add Comment
Please, Sign In to add comment