Module: Kernel

Defined in:
lib/tinatra.rb

Instance Method Summary collapse

Instance Method Details

#apiObject



264
265
266
# File 'lib/tinatra.rb', line 264

def api
  Tinatra.instance.api
end

#dbObject



257
258
259
# File 'lib/tinatra.rb', line 257

def db(path)
  Tinatra.instance.set(:db,path)
end

#set(*args) ⇒ Object



254
255
256
# File 'lib/tinatra.rb', line 254

def set(*args)
  Tinatra.instance.set(*args)
end