Sha256: 6374345a784e19db855a3b53d829eb275caffcb6d9a85041be140b4fbe7813ec

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

module MakeRestful::Specification
  extend ActiveSupport::Concern
  extend ActiveSupport::Autoload

  autoload :Builder
  # autoload :MethodBuilder

  def specification
    nil
  end

  module ClassMethods

    def specification(&block)

      spec_result = MakeRestful::Specification::Builder.new(self, &block).freeze

      define_method :specification do
        spec_result.render
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
make_restful-0.1.2 lib/make_restful/specification.rb
make_restful-0.1.1 lib/make_restful/specification.rb