Module: RFormat
- Defined in:
- lib/rformat.rb,
lib/rformat/application.rb,
lib/rformat/environment.rb
Defined Under Namespace
Classes: Application, Environment
Constant Summary
collapse
- Version =
File.read(File.join(self.root_dir, 'VERSION'))
- Copyright =
File.readlines(File.join(self.root_dir, 'LICENSE.txt')).first
Class Method Summary
collapse
Class Method Details
.application ⇒ Object
9
10
11
|
# File 'lib/rformat/application.rb', line 9
def application
@application ||= RFormat::Application.new
end
|
16
17
18
|
# File 'lib/rformat.rb', line 16
def format_file
File.join(lib_dir, 'rformat', 'formatters.yml')
end
|
.lib_dir ⇒ Object
12
13
14
|
# File 'lib/rformat.rb', line 12
def lib_dir
File.join(root_dir, 'lib')
end
|
20
21
22
|
# File 'lib/rformat.rb', line 20
def rformat_env_file
File.join(ENV['HOME'], ".rformat")
end
|
.root_dir ⇒ Object
8
9
10
|
# File 'lib/rformat.rb', line 8
def root_dir
File.expand_path('../', File.dirname(__FILE__))
end
|