class String
Override String
class
Constants
- SEP_KEY
Character used for delimited an key and this value
- SEP_LINE
Character used for delimited an line
Public Instance Methods
converting_to_hash()
click to toggle source
Converting a string with a format special to hash
# File lib/generators/ruby_rabbitmq_janus/create_request_generator.rb, line 11 def converting_to_hash hash = {} split(SEP_LINE).each do |couple_hash| hash.merge! \ HashString.new(couple_hash.split(SEP_KEY)).convert_in_hash end hash end