Class: Kadryll::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/kadryll.rb

Instance Method Summary collapse

Instance Method Details



55
56
57
# File 'lib/kadryll.rb', line 55

def copyright
  @copyright ||= "Copyright #{Date.today.year} YourName"
end

#copyright=(copyright) ⇒ Object



59
60
61
# File 'lib/kadryll.rb', line 59

def copyright=(copyright)
  @copyright = copyright
end

#input_dirObject



51
52
53
# File 'lib/kadryll.rb', line 51

def input_dir
  @input_dir ||= 'drills/data/'
end

#input_dir=(dir = '') ⇒ Object



47
48
49
# File 'lib/kadryll.rb', line 47

def input_dir=(dir = '')
  @input_dir = sanitize(dir)
end

#output_dirObject



43
44
45
# File 'lib/kadryll.rb', line 43

def output_dir
  @output_dir ||= 'drills/scores/'
end

#output_dir=(dir = '') ⇒ Object



39
40
41
# File 'lib/kadryll.rb', line 39

def output_dir=(dir = '')
  @output_dir = sanitize(dir)
end