Sha256: 53bf46954ab3fd259a6920f80ed85175c7ea9b36d97b3c90368719ebfe7076a7

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@tags[:@visibility:public:@signature"def helpers(&block):
@name:helpers:@namespaceu:YARD::StubProxyGrape::API:@source"	def helpers(&block)
  if block_given?
    m = settings_stack.last[:helpers] || Module.new
    m.class_eval &block
    set(:helpers, m)
  else
    m = Module.new
    settings_stack.each do |s|
      m.send :include, s[:helpers] if s[:helpers]
    end
    m
  end
end:
@dynamicT:@docstring_extra0:@source_type:	ruby:@docstringIC:YARD::Docstring"oAdd helper methods that will be accessible from any
endpoint within this namespace (and child namespaces).:@objectu;
Grape::API.helpers;[o:YARD::Tags::Tag
;u;
Grape::API.helpers:@tag_name"example;
"Define some helpers.:@types0:
@text"|class ExampleAPI < Grape::API
  helpers do
    def current_user
      User.find_by_id(params[:token])
    end
  end
end:@ref_tags[:
@summary0:	@all["8Add helper methods that will be accessible from any";endpoint within this namespace (and child namespaces)."""@example Define some helpers."&    class ExampleAPI < Grape::API"      helpers do"        def current_user".          User.find_by_id(params[:token])"        end"      end"    end:@line_rangeo:
Range:endi`:
beginiV:	exclF:@scope:
class:
@lineia:@explicitT:@parameters[["&block0:@files[["lib/grape/api.rbia:@current_file_has_commentsT

Version data entries

3 entries across 3 versions & 1 rubygems

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