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'))
File.readlines(File.join(self.root_dir, 'LICENSE.txt')).first

Class Method Summary collapse

Class Method Details

.applicationObject



9
10
11
# File 'lib/rformat/application.rb', line 9

def application
  @application ||= RFormat::Application.new
end

.format_fileObject



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

def format_file
  File.join(lib_dir, 'rformat', 'formatters.yml')
end

.lib_dirObject



12
13
14
# File 'lib/rformat.rb', line 12

def lib_dir
  File.join(root_dir, 'lib')
end

.rformat_env_fileObject



20
21
22
# File 'lib/rformat.rb', line 20

def rformat_env_file
  File.join(ENV['HOME'], ".rformat")
end

.root_dirObject



8
9
10
# File 'lib/rformat.rb', line 8

def root_dir
  File.expand_path('../', File.dirname(__FILE__))
end