Class: Rubycritic::BaseGenerator
- Inherits:
-
Object
- Object
- Rubycritic::BaseGenerator
show all
- Includes:
- ViewHelpers
- Defined in:
- lib/rubycritic/report_generators/base_generator.rb
Constant Summary
collapse
- REPORT_DIR =
File.expand_path("tmp/rubycritic", Dir.getwd)
- TEMPLATES_DIR =
File.expand_path("../templates", __FILE__)
Instance Method Summary
collapse
#asset_path, #index_path, #javascript_path, #smell_location_path, #stylesheet_path
Instance Method Details
#file_directory ⇒ Object
19
20
21
|
# File 'lib/rubycritic/report_generators/base_generator.rb', line 19
def file_directory
raise NotImplementedError.new("You must implement the file_directory method.")
end
|
#file_href ⇒ Object
11
12
13
|
# File 'lib/rubycritic/report_generators/base_generator.rb', line 11
def file_href
"file://#{file_pathname}"
end
|
#file_name ⇒ Object
23
24
25
|
# File 'lib/rubycritic/report_generators/base_generator.rb', line 23
def file_name
raise NotImplementedError.new("You must implement the file_name method.")
end
|
#file_pathname ⇒ Object
15
16
17
|
# File 'lib/rubycritic/report_generators/base_generator.rb', line 15
def file_pathname
File.join(file_directory, file_name)
end
|
#get_binding ⇒ Object
31
32
33
|
# File 'lib/rubycritic/report_generators/base_generator.rb', line 31
def get_binding
binding
end
|
#render ⇒ Object
27
28
29
|
# File 'lib/rubycritic/report_generators/base_generator.rb', line 27
def render
raise NotImplementedError.new("You must implement the render method.")
end
|