Sha256: c98338ea753114ab924ed426f30a82891055be26ea8607b5a1cf0dac5597962a
Contents?: true
Size: 408 Bytes
Versions: 5
Compression:
Stored size: 408 Bytes
Contents
module CloudstackClient module Utils def camel_case_to_underscore(camel_case) camel_case.gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("-", "_").downcase end def print_debug_output(output, seperator = '-' * 80) puts puts seperator puts output puts seperator puts end end end
Version data entries
5 entries across 5 versions & 1 rubygems