Sha256: 363b16bda302c08b9cfba45235bf24b2f71765a8b6be156a9dc1b6cce16ddda0
Contents?: true
Size: 558 Bytes
Versions: 6
Compression:
Stored size: 558 Bytes
Contents
class YARD::Handlers::Ruby::Legacy::ClassVariableHandler < YARD::Handlers::Ruby::Legacy::Base HANDLER_MATCH = /\A@@\w+\s*=\s*/m handles HANDLER_MATCH def process # Don't document @@cvars if they're set in second class objects (methods) because # they're not "static" when executed from a method return unless owner.is_a? NamespaceObject name, value = *statement.tokens.to_s.split(/\s*=\s*/, 2) register ClassVariableObject.new(namespace, name) do |o| o.source = statement o.value = value.strip end end end
Version data entries
6 entries across 6 versions & 1 rubygems