Sha256: f614fe13ae7229309ec5871431b3fb391434bb5aed64957f9a8e1e3fbca8e53e
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
# auto run require_relative "nyara/nyara" END { if $!.nil? and !Nyara.config.test? Nyara.setup 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::SimpleController' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.1.pre.2 | lib/nyara.rb |