Skip to content

Commit

Permalink
Merge pull request #134 from bastelfreak/frozen
Browse files Browse the repository at this point in the history
dumper: Support frozen strings
  • Loading branch information
emancu authored Jan 19, 2022
2 parents 04898eb + 0ccdfbb commit 7204a77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/toml-rb/dumper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "date"

module TomlRB
Expand Down Expand Up @@ -53,7 +55,7 @@ def dump_pairs(simple, nested, table_array, prefix = [])
def dump_simple_pairs(simple_pairs)
simple_pairs.each do |key, val|
key = quote_key(key) unless bare_key? key
@toml_str << "#{key} = #{to_toml(val)}\n"
@toml_str += "#{key} = #{to_toml(val)}\n"
end
end

Expand Down

0 comments on commit 7204a77

Please sign in to comment.