Sha256: 03adaa06d6268fcb9e68eb5428d89bf745f7a74a4a995a74737fc354b814454d
Contents?: true
Size: 429 Bytes
Versions: 76
Compression:
Stored size: 429 Bytes
Contents
class YARD::Handlers::C::AttributeHandler < YARD::Handlers::C::Base MATCH = %r{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
76 entries across 59 versions & 8 rubygems