mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Added initial tools support, minor refactor to sidebar actions
This commit is contained in:
5
lib/exts/string.rb
Normal file
5
lib/exts/string.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class String
|
||||
def to_snakecase
|
||||
self.to_s.split("::").last.gsub(/([^A-Z])([A-Z]+)/,'\1_\2').downcase.to_sym
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user