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



314
315
316
# File 'lib/belt/route_dsl.rb', line 314

def routes
  Routes.new
end

#schemaObject



318
319
320
# File 'lib/belt/route_dsl.rb', line 318

def schema
  @schema ||= SchemaBuilder.new
end