Module: Trailblazer::Core::Utils::Inspect
- Defined in:
- lib/trailblazer/core/utils/inspect.rb
Class Method Summary collapse
Class Method Details
.convert_hash_inspect(hash_inspect) ⇒ Object
14 15 16 17 |
# File 'lib/trailblazer/core/utils/inspect.rb', line 14 def self.convert_hash_inspect(hash_inspect) new_string = hash_inspect.gsub(/([{ ])(\w+): /, '\1:\2=>') new_string.gsub(" => ", "=>") end |