Class: RailsConsolePro::Printers::SchemaPrinter

Inherits:
BasePrinter
  • Object
show all
Defined in:
lib/rails_console_pro/printers/schema_printer.rb

Overview

Printer for schema inspection results

Instance Attribute Summary

Attributes inherited from BasePrinter

#output, #pry_instance, #value

Instance Method Summary collapse

Methods inherited from BasePrinter

#initialize

Methods included from ColorHelper

#bold_color, #color, #method_missing, #pastel, #respond_to_missing?

Constructor Details

This class inherits a constructor from RailsConsolePro::BasePrinter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RailsConsolePro::ColorHelper

Instance Method Details



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rails_console_pro/printers/schema_printer.rb', line 8

def print
  model = value.model
  print_header(model)
  print_table_info(model)
  print_columns(model)
  print_indexes(model)
  print_associations(model)
  print_validations(model)
  print_scopes(model)
  print_database_info(model)
  print_footer
end