Class: Oat::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/oat/support/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/oat/support/configuration.rb', line 21

def initialize
  #set all default values
  @outputfile = 'tmp'
  @use_japanese = 0
  @use_dot = 0
  @guess_examiner = 1
  @use_lowercase = 1
  @reasonsfile = File.join(Oat.txt_dir, 'reasons.yml')
  @partial_templates = {}
  @templates = {
    kyozetsuriyu: File.join(Oat.defaults_dir, 'default_riyu.docx'),
    shinpankyozetsuriyu: File.join(Oat.defaults_dir, 'default_shinpankyozetsuriyu.docx'),
    kyozetsusatei: File.join(Oat.defaults_dir, 'default_satei.docx'),
    shinnen: File.join(Oat.defaults_dir, 'default_shinnen.docx'),
    shireisho: File.join(Oat.defaults_dir, 'default_shireisho.docx'),
    rejectamendments: File.join(Oat.defaults_dir, 'default_rejectamendments.docx'),
    examiners: File.join(Oat.txt_dir, 'examiners.txt') }
end

Instance Attribute Details

#casenumberObject

Returns the value of attribute casenumber


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

def casenumber
  @casenumber
end

#guess_examinerObject

Returns the value of attribute guess_examiner


11
12
13
# File 'lib/oat/support/configuration.rb', line 11

def guess_examiner
  @guess_examiner
end

#highwayObject

Returns the value of attribute highway


9
10
11
# File 'lib/oat/support/configuration.rb', line 9

def highway
  @highway
end

#outputfileObject

Returns the value of attribute outputfile


12
13
14
# File 'lib/oat/support/configuration.rb', line 12

def outputfile
  @outputfile
end

#partial_templatesObject

Returns the value of attribute partial_templates


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

def partial_templates
  @partial_templates
end

#reasonsfileObject

Returns the value of attribute reasonsfile


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

def reasonsfile
  @reasonsfile
end

#templatablesObject

not set externally


18
19
20
# File 'lib/oat/support/configuration.rb', line 18

def templatables
  @templatables
end

#templatesObject

Returns the value of attribute templates


15
16
17
# File 'lib/oat/support/configuration.rb', line 15

def templates
  @templates
end

#use_dotObject

Returns the value of attribute use_dot


8
9
10
# File 'lib/oat/support/configuration.rb', line 8

def use_dot
  @use_dot
end

#use_japaneseObject

set externally


7
8
9
# File 'lib/oat/support/configuration.rb', line 7

def use_japanese
  @use_japanese
end

#use_lowercaseObject

Returns the value of attribute use_lowercase


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

def use_lowercase
  @use_lowercase
end