Class: Kadryll::Configuration
- Inherits:
-
Object
- Object
- Kadryll::Configuration
- Includes:
- Singleton
- Defined in:
- lib/kadryll.rb
Instance Method Summary collapse
- #copyright ⇒ Object
- #copyright=(copyright) ⇒ Object
- #input_dir ⇒ Object
- #input_dir=(dir = '') ⇒ Object
- #output_dir ⇒ Object
- #output_dir=(dir = '') ⇒ Object
Instance Method Details
#copyright ⇒ Object
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_dir ⇒ Object
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_dir ⇒ Object
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 |