Class: AnnotateRb::Commands::AnnotateRoutes

Inherits:
Object
  • Object
show all
Defined in:
lib/annotate_rb/commands/annotate_routes.rb

Instance Method Summary collapse

Instance Method Details

#call(options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/annotate_rb/commands/annotate_routes.rb', line 6

def call(options)
  puts "Annotating routes"

  if options[:debug]
    puts "Running with debug mode, options:"
    pp options.to_h
  end

  AnnotateRb::RouteAnnotator::Annotator.send(options[:target_action], options)
end