Module: Sinatra::IndexTankExtension

Defined in:
lib/sinatra/indextank.rb

Instance Method Summary collapse

Instance Method Details

#indextankObject



18
19
20
# File 'lib/sinatra/indextank.rb', line 18

def indextank
  synchronize { @indextank ||= IndexTank::Client.new(indextank_url) }
end

#indextank=(url) ⇒ Object



12
13
14
15
16
# File 'lib/sinatra/indextank.rb', line 12

def indextank=(url)
  @indextank = nil
  set :indextank_url, url
  indextank
end