Sha256: 11a433d02cd5ae72bd8acec69e22139041fc03f14c92343ecafd5c89221619e0
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# auto run require_relative "nyara/nyara" END { if $!.nil? and !Nyara.config.test? Nyara.setup Nyara.load_app Nyara.start_server end } module Nyara class SimpleController < Controller end end %w[on tag get post put delete patch options meta].each do |m| eval <<-RUBY def #{m} *xs, &blk Nyara::SimpleController.#{m} *xs, &blk end RUBY end configure do map '/', 'nyara::simple' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.1.pre.1 | lib/nyara.rb |