Class: Tori::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tori/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



4
5
6
7
# File 'lib/tori/config.rb', line 4

def initialize
  @backend = nil
  @filename_callback = nil
end

Instance Attribute Details

#backendObject

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