Class: Tori::Config
- Inherits:
-
Object
- Object
- Tori::Config
- Defined in:
- lib/tori/config.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
Instance Method Summary collapse
- #filename_callback(&block) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
4 5 6 7 |
# File 'lib/tori/config.rb', line 4 def initialize @backend = nil @filename_callback = nil end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
3 4 5 |
# File 'lib/tori/config.rb', line 3 def backend @backend end |
Instance Method Details
#filename_callback(&block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/tori/config.rb', line 9 def filename_callback(&block) if block_given? @filename_callback = block else @filename_callback end end |