Method: String#camelwords

Defined in:
lib/activefacts/api/support.rb

#camelwordsObject



28
29
30
31
32
# File 'lib/activefacts/api/support.rb', line 28

def camelwords
  gsub(/-([a-zA-Z])/){ $1.upcase }.                 # Break and upcase on hyphenated words
    gsub(/([a-z])([A-Z])/,'\1_\2').
    split(/[_\s]+/)
end