Sha256: 1f187bb4afbbabcd0a17c81bc170dfe2433df7469dc07b6e464b7aff98bacf87

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

module Puffer
  module Controller
    class Actions < Array

      %w(match get post put delete).each do |method|
        define_method method do |*args|
          push args.unshift(method)
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puffer-0.0.10 lib/puffer/controller/actions.rb
puffer-0.0.9 lib/puffer/controller/actions.rb
puffer-0.0.8 lib/puffer/controller/actions.rb