Class: AwesomeAnnotate::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/awesome_annotate/cli.rb

Instance Method Summary collapse

Instance Method Details

#model(model_name) ⇒ Object



19
20
21
# File 'lib/awesome_annotate/cli.rb', line 19

def model(model_name)
  AwesomeAnnotate::Model.new.annotate(model_name)
end


13
14
15
# File 'lib/awesome_annotate/cli.rb', line 13

def print_version
  say AwesomeAnnotate::VERSION
end

#routesObject



25
26
27
# File 'lib/awesome_annotate/cli.rb', line 25

def routes
  AwesomeAnnotate::Route.new.annotate
end