Sha256: 99cbce823caa5af64fcd3298afaf51256b4d89574af0d1e5f454cf9f2bcf0351
Contents?: true
Size: 423 Bytes
Versions: 15
Compression:
Stored size: 423 Bytes
Contents
module SketchUpYARD class ClassEnumConstantHandler < YARD::Handlers::C::Base MATCH = %r{\bDEFINE_RUBY_CLASS_ENUM\s*\(([^,]+)\s*,\s*(\w+)\s*\)\s*;}xm handles MATCH statement_class BodyStatement process do statement.source.scan(MATCH) do |klass_name, const_name| type = "const" value = "nil" handle_constants(type, klass_name, const_name, value) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems