Sha256: 1ddaa487849f0b5f523236cb027b922363ccc97cd04f78a0effc821d806e63ac
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
module YARD module Contextify module Legacy class ContextifyHandler < YARD::Handlers::Ruby::Legacy::Base handles /\Acontextify\s+:/ def process nobj = ModuleObject.new(:root, 'Kernel') mscope = scope name = statement.tokens[2,1].to_s[1..-1] register MethodObject.new(nobj, name, :instance) do |o| o.visibility = :public o.source = statement.source o.signature = "def #{name}" o.parameters = [['*args', nil], ['&block', nil]] end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-contextify-0.1.0 | lib/yard-contextify/legacy/contextify_handler.rb |