Class: RailsDbBrowser::Runner

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Runner

Returns a new instance of Runner.



9
10
11
# File 'lib/rails_db_browser.rb', line 9

def initialize(path)
  @url_truncate = URLTruncate.new(DbBrowser, path)
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
# File 'lib/rails_db_browser.rb', line 13

def call(env)
  @url_truncate.call(env)
end