Sha256: 7d79555137272bc884af759a75b3e8908dc09762eb5fea3ee2e199ccc92fee5e

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@tags[:@visibility:public:@signature"'def version(*new_versions, &block):
@name:version:@namespaceu:YARD::StubProxyGrape::API:@source"|def version(*new_versions, &block)
  new_versions.any? ? nest(block){ set(:version, new_versions) } : settings[:version]
end:
@dynamicT:@docstring_extra0:@source_type:	ruby:@docstringIC:YARD::Docstring"Specify an API version.:@objectu;
Grape::API.version;[o:YARD::Tags::Tag
;u;
Grape::API.version:@tag_name"example;
"API with legacy support.:@types0:
@text"©class MyAPI < Grape::API
  version 'v2'

  get '/main' do
    {:some => 'data'}
  end

  version 'v1' do
    get '/legacy' do
      {:legacy => 'data'}
    end
  end
end:@ref_tags[:
@summary0:	@all["Specify an API version.""&@example API with legacy support."  class MyAPI < Grape::API"    version 'v2'"	    "    get '/main' do"      {:some => 'data'}"    end"
        "    version 'v1' do"      get '/legacy' do"         {:legacy => 'data'}"      end"    end"
  end:@line_rangeo:
Range:endiJ:
begini;:	exclF:@scope:
class:
@lineiK:@explicitT:@parameters[["*new_versions0["&block0:@files[["lib/grape/api.rbiK:@current_file_has_commentsT

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-0.1.5 .yardoc/objects/Grape/API/version_c.dat
grape-0.1.4 .yardoc/objects/Grape/API/version_c.dat
grape-0.1.3 .yardoc/objects/Grape/API/version_c.dat