Class: RailsConsolePro::Commands::DiffCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- RailsConsolePro::Commands::DiffCommand
- Defined in:
- lib/rails_console_pro/commands/diff_command.rb
Instance Method Summary collapse
Methods included from RailsConsolePro::ColorHelper
#bold_color, #color, #method_missing, #pastel, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RailsConsolePro::ColorHelper
Instance Method Details
#execute(object1, object2) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rails_console_pro/commands/diff_command.rb', line 6 def execute(object1, object2) return nil if object1.nil? || object2.nil? execute_diff(object1, object2) rescue => e RailsConsolePro::ErrorHandler.handle(e, context: :diff) end |