summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-05-30 20:22:41 +0900
committerRandy Morgan <[email protected]>2012-05-30 20:22:41 +0900
commit3e9026bae0dde81eeeb86ee76ee680b4b8878b86 (patch)
tree2801d2282c6e3f663ecaa307c062b84662d8a8ce /lib/axlsx.rb
parentf7287c1f421a7e71ae34658adb29b30fefb1afe3 (diff)
downloadcaxlsx-3e9026bae0dde81eeeb86ee76ee680b4b8878b86.tar.gz
caxlsx-3e9026bae0dde81eeeb86ee76ee680b4b8878b86.zip
release prep for 1.1.6
Diffstat (limited to 'lib/axlsx.rb')
-rw-r--r--lib/axlsx.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb
index 7faabf3e..92c58b33 100644
--- a/lib/axlsx.rb
+++ b/lib/axlsx.rb
@@ -84,6 +84,9 @@ module Axlsx
Axlsx::col_ref(c_index).to_s << (r_index+1).to_s
end
+ # performs the increadible feat of changing snake_case to CamelCase
+ # @param [String] s The snake case string to camelize
+ # @return [String]
def self.camel(s="")
s = s.capitalize.gsub(/_(.)/){ $1.upcase }
end