Class: SnapshotTesting::Serializer
- Inherits:
-
Object
- Object
- SnapshotTesting::Serializer
- Defined in:
- lib/snapshot_testing/serializer.rb
Instance Method Summary collapse
Instance Method Details
#accepts?(value) ⇒ Boolean
3 4 5 |
# File 'lib/snapshot_testing/serializer.rb', line 3 def accepts?(value) true end |
#dump(value) ⇒ Object
7 8 9 |
# File 'lib/snapshot_testing/serializer.rb', line 7 def dump(value) value.to_s.dump.gsub("\\n", "\n")[1..-2] end |