Sha256: db44c3f687c17238e1b4747f011a504d19465a450d147386f492e9d4400c8053
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true # :nocov: module Yattho module YARD # YARD Handler to parse `renders_one` calls. class RendersOneHandler < ::YARD::Handlers::Ruby::Base handles method_call(:renders_one) 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_one] = true end end end end # :nocov:
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/yattho/yard/renders_one_handler.rb |
yattho_view_components-0.0.1 | lib/yattho/yard/renders_one_handler.rb |