Class: CodeHunter::RailsBestPractices

Inherits:
Object
  • Object
show all
Defined in:
lib/code_hunter/rails_best_practices.rb,
lib/code_hunter/rails_best_practices/invoker.rb,
lib/code_hunter/rails_best_practices/summarizer.rb

Defined Under Namespace

Classes: Invoker, Summarizer

Constant Summary collapse

TEMPORAL_PATHNAME =
Pathname.new("#{Dir.tmpdir}/rails_best_practices.html")

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ RailsBestPractices

Returns a new instance of RailsBestPractices.



15
16
17
# File 'lib/code_hunter/rails_best_practices.rb', line 15

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/code_hunter/rails_best_practices.rb', line 10

def options
  @options
end

Instance Method Details

#runObject



19
20
21
22
23
24
# File 'lib/code_hunter/rails_best_practices.rb', line 19

def run
  invoke
  summarize
ensure
  clean
end