method
find_attr_comment
v1_8_7_72 -
Show latest stable
- Class:
RDoc::C_Parser
find_attr_comment(attr_name)private
No documentation available.
# File lib/rdoc/parsers/parse_c.rb, line 566
def find_attr_comment(attr_name)
if @body =~ %r{((?>/\*.*?\*/\s+))
rb_define_attr\((?:\s*(\w+),)?\s*"#{attr_name}"\s*,.*?\)\s*;}xmi
$1
elsif @body =~ %r{Document-attr:\s#{attr_name}\s*?\n((?>.*?\*/))}m
$1
else
''
end
end