Class: RailsApiBenchmark::Views::View
- Inherits:
-
Mustache
- Object
- Mustache
- RailsApiBenchmark::Views::View
show all
- Defined in:
- lib/rails_api_benchmark/views/view.rb
Instance Method Summary
collapse
Constructor Details
#initialize(*_args) ⇒ View
Returns a new instance of View.
6
7
8
|
# File 'lib/rails_api_benchmark/views/view.rb', line 6
def initialize(*_args)
@template_path = File.expand_path('../../templates', __FILE__)
end
|
Instance Method Details
#file_name ⇒ Object
10
11
12
|
# File 'lib/rails_api_benchmark/views/view.rb', line 10
def file_name
"#{@file_name}.#{extension}"
end
|
#file_path ⇒ Object
14
15
16
|
# File 'lib/rails_api_benchmark/views/view.rb', line 14
def file_path
[folder, file_name].compact.join('/')
end
|
#folder ⇒ Object
18
19
20
|
# File 'lib/rails_api_benchmark/views/view.rb', line 18
def folder
nil
end
|