method

find_attr_comment

v1_9_3_125 - Show latest stable - Class: RDoc::Parser::C
find_attr_comment(var_name, attr_name, read = nil, write = nil)
public

Finds a comment for rb_define_attr, rb_attr or Document-attr.

var_name is the C class variable the attribute is defined on. attr_name is the attribute’s name.

read and write are the read/write flags (‘1’ or ‘0’). Either both or neither must be provided.