Sha256: deddfca38aa9893bf4ec50f98b587508c3a9177d9b78372e5f2341b88486e1a6
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
module YARD module DM module Predefined module Legacy class PredefineHandler < YARD::Handlers::Ruby::Legacy::Base handles /\Apredefine\s+:/ def process nobj = namespace name = statement.tokens[2,1].to_s[1..-1] register MethodObject.new(nobj, name, :class) do |o| o.visibility = :public o.source = statement.source o.signature = "def #{nobj}.#{name}" end end end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
yard-dm-is-predefined-0.2.0 | lib/yard-dm-is-predefined/legacy/predefine_handler.rb |
yard-dm-predefined-0.1.0 | lib/yard-dm-predefined/legacy/predefine_handler.rb |