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)."