Top Level Namespace
Defined Under Namespace
Modules: ATD, InternalHelpers
Classes: Object
Instance Method Summary
collapse
Instance Method Details
#request(*args, &block) ⇒ ATD::Route
Also known as:
req, r
261
262
263
|
# File 'lib/atd.rb', line 261
def request(*args, &block)
ATD::App.request(*args, &block)
end
|
#start(app = DefaultApp, server = WEBrick, port = 3150) ⇒ Object
271
272
273
|
# File 'lib/atd.rb', line 271
def start(app = DefaultApp, server = WEBrick, port = 3150)
Rack::Server.start(app: app.new, server: server, Port: port)
end
|
#to_compile(name, &block) ⇒ Object
69
70
71
72
|
# File 'lib/atd/routes.rb', line 69
def to_compile(name, &block)
warn "You have overriden the #{name.to_sym} compiler" if ATD::Compilation.compilers.key? name.to_sym
ATD::Compilation.compilers[name.to_sym] = block
end
|
#to_precompile(name, &block) ⇒ Object
74
75
76
77
|
# File 'lib/atd/routes.rb', line 74
def to_precompile(name, &block)
warn "You have overriden the #{name.to_sym} precompiler" if ATD::Compilation.compilers.key? name.to_sym
ATD::Compilation.precompilers[name.to_sym] = block
end
|