Module: Spark::CoreExtension::String::InstanceMethods

Defined in:
lib/spark/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#camelize_with_sparkObject



8
9
10
# File 'lib/spark/ext/string.rb', line 8

def camelize_with_spark
  self.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
end