Sha256: 878693d895f35476bb2a0a37024369fa5f9cbbac9d80a4bc2a801a0e77ab30e4
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true class YARD::Handlers::C::AttributeHandler < YARD::Handlers::C::Base MATCH = /rb_define_attr\s*\(\s*([\w\.]+),\s*"([^"]+)",\s*(0|1)\s*,\s*(0|1)\s*\)/ handles MATCH process do return if ToplevelStatement == statement return if Comment === statement && statement.type != :multi statement.source.scan(MATCH) do |var_name, name, read, write| handle_attribute(var_name, name, read, write) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yard-0.9.18 | lib/yard/handlers/c/attribute_handler.rb |
yard-0.9.17 | lib/yard/handlers/c/attribute_handler.rb |