Class: PryRailsDiffRoutes::RemovedRoutesFormatter
- Inherits:
-
Object
- Object
- PryRailsDiffRoutes::RemovedRoutesFormatter
- Defined in:
- lib/pry_rails_diff_routes/formatters/removed_routes_formatter.rb
Instance Method Summary collapse
-
#initialize(routes) ⇒ RemovedRoutesFormatter
constructor
A new instance of RemovedRoutesFormatter.
- #to_s ⇒ Object
Constructor Details
#initialize(routes) ⇒ RemovedRoutesFormatter
3 4 5 |
# File 'lib/pry_rails_diff_routes/formatters/removed_routes_formatter.rb', line 3 def initialize(routes) @routes = routes end |
Instance Method Details
#to_s ⇒ Object
7 8 9 10 11 12 |
# File 'lib/pry_rails_diff_routes/formatters/removed_routes_formatter.rb', line 7 def to_s " \#{Util.bold_red 'Removed:'}\n \#{@routes.map(&:to_s).join(\"\\n\")}\n NEW\nend\n" |