lib/toml/inline_table.rb in toml-rb-0.3.4 vs lib/toml/inline_table.rb in toml-rb-0.3.5

- old
+ new

@@ -61,10 +61,10 @@ end end module InlineTableArray def value - tables = captures[:hash_array].map { |x| x.captures[:inline_table] } + tables = captures[:inline_table_array_elements].map { |x| x.captures[:inline_table] } - TOML::InlineTableArray.new tables.flatten.map(&:value) + TOML::InlineTableArray.new(tables.flatten.map(&:value)).value end end