Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def subkeywords
- arr = []
- arr += ( 'a' .. 'z' ).to_a unless self =~ /\d$/
- # arr += ('0'..'9').to_a #unless self =~ /(\d)([^_]+)$/
- # arr << ' ' unless self.include?(' ')
- return arr.map{|key| self+key}
- end
Add Comment
Please, Sign In to add comment