We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c66db0 commit e193098Copy full SHA for e193098
lib/code_teams/utils.rb
@@ -1,15 +1,17 @@
1
-module CodeTeams::Utils
2
- extend self
+module CodeTeams
+ module Utils
3
+ extend self
4
- def underscore(string)
5
- string.gsub('::', '/')
6
- .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
7
- .gsub(/([a-z\d])([A-Z])/, '\1_\2')
8
- .tr('-', '_')
9
- .downcase
10
- end
+ def underscore(string)
+ string.gsub('::', '/')
+ .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
+ .gsub(/([a-z\d])([A-Z])/, '\1_\2')
+ .tr('-', '_')
+ .downcase
11
+ end
12
- def demodulize(string)
13
- string.split('::').last
+ def demodulize(string)
14
+ string.split('::').last
15
16
end
17
0 commit comments