Sha256: 445335479901932b095b16e0bc166a35e167d3d70309d5463e5ab2a887d41268
Contents?: true
Size: 382 Bytes
Versions: 6
Compression:
Stored size: 382 Bytes
Contents
# auto run require_relative "nyara/nyara" at_exit do Nyara::Route.compile Nyara::View.init Nyara.start_server end module Nyara class SimpleController < Controller end end %w[on tag get post put delete patch options].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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.0.1.pre.5 | lib/nyara.rb |
nyara-0.0.1.pre.4 | lib/nyara.rb |
nyara-0.0.1.pre.3 | lib/nyara.rb |
nyara-0.0.1.pre.2 | lib/nyara.rb |
nyara-0.0.1.pre.1 | lib/nyara.rb |
nyara-0.0.1.pre | lib/nyara.rb |