module SharedSettings::UI
Public Class Methods
app() { |builder| ... }
click to toggle source
# File lib/shared_settings/ui.rb, line 12 def self.app app = ->(_) { [200, { 'Content-Type' => 'text/html' }, ['']] } builder = Rack::Builder.new yield builder if block_given? builder.use(SharedSettings::UI::Middleware) builder.run(app) builder end
asset_root()
click to toggle source
# File lib/shared_settings/ui.rb, line 8 def self.asset_root Pathname(__FILE__).dirname.expand_path.join('ui') end