Class: Belt::Application

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

Overview

Application object providing Rails-style ‘Belt.application.routes.draw` DSL.

Defined Under Namespace

Classes: RouteBuilder, Routes

Instance Method Summary collapse

Instance Method Details

#routesObject



294
295
296
# File 'lib/belt/route_dsl.rb', line 294

def routes
  Routes.new
end

#schemaObject



298
299
300
# File 'lib/belt/route_dsl.rb', line 298

def schema
  @schema ||= SchemaBuilder.new
end