Module: LB::Project::API

Defined in:
lib/lb/project/api.rb

Overview

LB::Project API

Instance Method Summary collapse

Instance Method Details

#configConfig

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get main configuration

Returns:



57
58
59
# File 'lib/lb/project/api.rb', line 57

def config
  LB::Project.config
end

#loggerObject



65
66
67
# File 'lib/lb/project/api.rb', line 65

def logger
  LB::Project.logger
end

#public_pathdir_name

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get public path

Returns:

  • (dir_name)


47
48
49
# File 'lib/lb/project/api.rb', line 47

def public_path
  LB::Project.public_path
end

#rootdir_name

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get root path

Returns:

  • (dir_name)


13
14
15
# File 'lib/lb/project/api.rb', line 13

def root
  LB::Project.root
end

#root_for(file, depth = 2) ⇒ dir_name

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get root path for file

directory

Parameters:

  • file (File)

    The file to get the root path from

  • depth (File) (defaults to: 2)

    The depth of the given file relative from the root

Returns:

  • (dir_name)


27
28
29
# File 'lib/lb/project/api.rb', line 27

def root_for(file, depth = 2)
  LB::Project.root_for(file, depth)
end

#t(*params) ⇒ Object



61
62
63
# File 'lib/lb/project/api.rb', line 61

def t(*params)
  LB::Project.t(*params)
end

#template_pathdir_name

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get template path

Returns:

  • (dir_name)


37
38
39
# File 'lib/lb/project/api.rb', line 37

def template_path
  LB::Project.template_path
end