Module: Gitter::Driver

Included in:
Grid, PivotGrid
Defined in:
lib/gitter/driver.rb

Instance Method Summary collapse

Instance Method Details

#create_driver(scope) ⇒ Object



12
13
14
# File 'lib/gitter/driver.rb', line 12

def create_driver scope
  driver_class.new scope
end

#driver_class(driver_class = nil) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/gitter/driver.rb', line 4

def driver_class  driver_class = nil
  if driver_class
    @driver_class = driver_class
  else
    @driver_class || detect_driver_class or raise ConfigurationError, "no driver given"
  end
end