Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/orgrep/string.rb

Overview

extend String class

Instance Method Summary collapse

Instance Method Details

#camelizeObject



6
7
8
# File 'lib/orgrep/string.rb', line 6

def camelize
  split("_").map(&:capitalize).join
end

#compactObject



10
11
12
# File 'lib/orgrep/string.rb', line 10

def compact
  split(" ").join
end