Sha256: 379dd45b418d0ff01c6d163def181cf0833f4716ece757da5a2b34f30b549940

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 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

3 entries across 3 versions & 1 rubygems

Version Path
deg-yard-0.8.7.4 lib/yard/handlers/c/attribute_handler.rb
deg-yard-0.8.7.3 lib/yard/handlers/c/attribute_handler.rb
deg-yard-0.8.7.1 lib/yard/handlers/c/attribute_handler.rb