class CodeCaser::SnakeConverter
Public Instance Methods
convert_string(str)
click to toggle source
# File lib/code_caser/converters.rb, line 59 def convert_string(str) str.gsub(/([a-z0-9])_([a-z0-9])/) { |s| $1 + $2.upcase } end
description()
click to toggle source
# File lib/code_caser/converters.rb, line 63 def description "snake_case to camelCase" end