Sha256: d280953dd63edf9314c7aa5f4babeb53210fd56b2e8df9d413788671b40cf2d0

Contents?: true

Size: 521 Bytes

Versions: 347

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

module YARD
  # YARD Handler to parse `renders_many` calls.
  class RendersManyHandler < YARD::Handlers::Ruby::Base
    handles method_call(:renders_many)
    namespace_only

    process do
      name = statement.parameters.first.jump(:tstring_content, :ident).source
      object = YARD::CodeObjects::MethodObject.new(namespace, name)
      register(object)
      parse_block(statement.last, owner: object)

      object.dynamic = true
      object[:renders_many] = true
    end
  end
end

Version data entries

347 entries across 347 versions & 2 rubygems

Version Path
ariadne_view_components-0.0.45-x64-mingw-ucrt lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.45 lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.45-x86_64-darwin lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.45-arm64-darwin lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.45-x86_64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.45-aarch64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.44-aarch64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.44-arm64-darwin lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.44-x86_64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.44-x86_64-darwin lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.44-x64-mingw-ucrt lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.44 lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.43-x64-mingw-ucrt lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.43-arm64-darwin lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.43-x86_64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.43-x86_64-darwin lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.43-aarch64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.43 lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.42-x86_64-linux lib/yard/renders_many_handler.rb
ariadne_view_components-0.0.42-arm64-darwin lib/yard/renders_many_handler.rb