Module: Oat

Defined in:
lib/oat/support/formats.rb,
lib/oat.rb,
lib/oat/oa.rb,
lib/version.rb,
lib/oat/helpers.rb,
lib/oat/parsers.rb,
lib/oat/document.rb,
lib/oat/blobtypes/blob.rb,
lib/oat/oatypes/shinnen.rb,
lib/oat/oatypes/shireisho.rb,
lib/oat/support/constants.rb,
lib/oat/support/oa_regexes.rb,
lib/oat/oatypes/kyozetsuriyu.rb,
lib/oat/support/filehandling.rb,
lib/oat/oatypes/kyozetsusatei.rb,
lib/oat/support/configuration.rb,
lib/oat/oatypes/rejectamendments.rb,
lib/oat/oatypes/shinpankyozetsuriyu.rb

Overview

Configuration object, singleton, class variable on module Oat

Defined Under Namespace

Modules: Constants, FileHandling, Formats, Helpers, OaRegexes, Parsers Classes: Blob, Configuration, Document, Kyozetsuriyu, Kyozetsusatei, OA, Rejectamendments, Shinnen, Shinpankyozetsuriyu, Shireisho

Constant Summary collapse

VERSION =
'0.5.23'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration


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

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:


13
14
15
16
# File 'lib/oat.rb', line 13

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.defaults_dirObject


27
28
29
# File 'lib/oat.rb', line 27

def self.defaults_dir
  File.join(Oat.root, 'lib', 'oat', 'defaults')
end

.rootObject

module methods to print directory paths


19
20
21
# File 'lib/oat.rb', line 19

def self.root
  File.dirname __dir__ #ruby 2.0+
end

.support_dirObject


23
24
25
# File 'lib/oat.rb', line 23

def self.support_dir
  File.join(Oat.root, 'lib', 'oat', 'support')
end

.txt_dirObject


31
32
33
# File 'lib/oat.rb', line 31

def self.txt_dir
  File.join(Oat.root, 'lib', 'oat', 'txt')
end