Module: Logi::Default

Defined in:
lib/logi/default.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_commandObject



9
# File 'lib/logi/default.rb', line 9

def default_command    ; 'post'  ; end

.default_layoutObject



10
11
12
# File 'lib/logi/default.rb', line 10

def default_layout
  File.expand_path("#{__dir__}/layout/default.html.erb")
end

.default_layout_pathObject



7
# File 'lib/logi/default.rb', line 7

def default_layout_path; 'layout'; end

.default_output_pathObject



8
# File 'lib/logi/default.rb', line 8

def default_output_path; 'public'; end

.default_post_pathObject



6
# File 'lib/logi/default.rb', line 6

def default_post_path  ; 'post'  ; end

.default_root_pathObject



5
# File 'lib/logi/default.rb', line 5

def default_root_path  ; '.'     ; end

.empty_layoutObject



13
14
15
# File 'lib/logi/default.rb', line 13

def empty_layout
  File.expand_path("#{__dir__}/layout/empty.html.erb")
end

.example_directoryObject



16
17
18
# File 'lib/logi/default.rb', line 16

def example_directory
  File.expand_path("#{__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