Sha256: 8724f658e0fbbadf3e7ef7d06af47cd30f6fcf649c25b07e4272e97f3d95d9ce
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
require '../lib/lunetas' class Testing include Lunetas::Candy matches '/hello/(\w+)', :name def get "Hello #{@name}! #{params[:chunky]}" end def post "Hey #{@name}, I see you're testing the POST method :)" end end class AnotherTest include Lunetas::Candy matches '^/(\d+)$', :number def get "Is #{@number} your lucky number?" end def other_verb(verb) if verb == 'TEAPOT' "I ain't a teapot!" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lunetas-0.0.0 | examples/testing.rb |