Class: Approvals::Writers::HashWriter
- Inherits:
-
TextWriter
- Object
- TextWriter
- Approvals::Writers::HashWriter
- Defined in:
- lib/approvals/writers/hash_writer.rb
Instance Method Summary collapse
Methods inherited from TextWriter
Instance Method Details
#format(data) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/approvals/writers/hash_writer.rb', line 5 def format(data) s = "{\n" data.each do |key, value| s << "\t#{key.inspect} => #{value.inspect}\n" end s << "}" s end |