Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A bit of cleanup

  • Loading branch information...
commit 3dd632c3312dd04f0092fb670300856e6b8b1207 1 parent c1412d4
@fabien authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/minigems.rb
View
6 lib/minigems.rb
@@ -5,12 +5,6 @@ module MiniGems
# The next line needs to be kept exactly as shown; it's being replaced
# during minigems installation.
FULL_RUBYGEMS_METHODS = []
-
- def self.snake_case(str)
- return str.downcase if str =~ /^[A-Z]+$/
- str.gsub(/([A-Z]+)(?=[A-Z][a-z]?)|\B[A-Z]/, '_\&') =~ /_*(.*)/
- return $+.downcase
- end
def self.camel_case(str)
return str if str !~ /_/ && str =~ /[A-Z]+.*/
Please sign in to comment.
Something went wrong with that request. Please try again.