Module: OpenapiFirst::Utils

Defined in:
lib/openapi_first/utils.rb

Class Method Summary collapse

Class Method Details

.classify(string) ⇒ Object



17
18
19
# File 'lib/openapi_first/utils.rb', line 17

def self.classify(string)
  Hanami::Utils::String.classify(string)
end

.deep_merge!(dest, source) ⇒ Object



9
10
11
# File 'lib/openapi_first/utils.rb', line 9

def self.deep_merge!(dest, source)
  DeepMerge.deep_merge!(source, dest)
end

.deep_stringify(hash) ⇒ Object



25
26
27
# File 'lib/openapi_first/utils.rb', line 25

def self.deep_stringify(hash)
  Hanami::Utils::Hash.deep_stringify(hash)
end

.deep_symbolize(hash) ⇒ Object



21
22
23
# File 'lib/openapi_first/utils.rb', line 21

def self.deep_symbolize(hash)
  Hanami::Utils::Hash.deep_symbolize(hash)
end

.underscore(string) ⇒ Object



13
14
15
# File 'lib/openapi_first/utils.rb', line 13

def self.underscore(string)
  Hanami::Utils::String.underscore(string)
end