Class: SqlFootprint::FootprintSerializer
- Inherits:
-
Object
- Object
- SqlFootprint::FootprintSerializer
- Defined in:
- lib/sql_footprint/footprint_serializer.rb
Constant Summary collapse
- NEWLINE =
"\n".freeze
Instance Method Summary collapse
-
#initialize(statements) ⇒ FootprintSerializer
constructor
A new instance of FootprintSerializer.
- #to_s ⇒ Object
Constructor Details
#initialize(statements) ⇒ FootprintSerializer
Returns a new instance of FootprintSerializer.
5 6 7 |
# File 'lib/sql_footprint/footprint_serializer.rb', line 5 def initialize statements @statements = statements end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/sql_footprint/footprint_serializer.rb', line 9 def to_s @statements.sort.join(NEWLINE) + NEWLINE end |