Module: Logi::Default
- Defined in:
- lib/logi/default.rb
Class Method Summary collapse
- .default_command ⇒ Object
- .default_layout ⇒ Object
- .default_layout_path ⇒ Object
- .default_output_path ⇒ Object
- .default_post_path ⇒ Object
- .default_root_path ⇒ Object
- .empty_layout ⇒ Object
- .example_directory ⇒ Object
Instance Method Summary collapse
-
#__dir__ ⇒ Object
For Ruby 1.9-.
Class Method Details
.default_command ⇒ Object
9 |
# File 'lib/logi/default.rb', line 9 def default_command ; 'post' ; end |
.default_layout ⇒ Object
10 11 12 |
# File 'lib/logi/default.rb', line 10 def default_layout File.("#{__dir__}/layout/default.html.erb") end |
.default_layout_path ⇒ Object
7 |
# File 'lib/logi/default.rb', line 7 def default_layout_path; 'layout'; end |
.default_output_path ⇒ Object
8 |
# File 'lib/logi/default.rb', line 8 def default_output_path; 'public'; end |
.default_post_path ⇒ Object
6 |
# File 'lib/logi/default.rb', line 6 def default_post_path ; 'post' ; end |
.default_root_path ⇒ Object
5 |
# File 'lib/logi/default.rb', line 5 def default_root_path ; '.' ; end |
.empty_layout ⇒ Object
13 14 15 |
# File 'lib/logi/default.rb', line 13 def empty_layout File.("#{__dir__}/layout/empty.html.erb") end |
.example_directory ⇒ Object
16 17 18 |
# File 'lib/logi/default.rb', line 16 def example_directory File.("#{__dir__}/../../example") end |
Instance Method Details
#__dir__ ⇒ Object
For Ruby 1.9-
21 22 23 |
# File 'lib/logi/default.rb', line 21 def __dir__ File.dirname(__FILE__) end |