method
find_attr_comment
v1_9_2_180 -
Show latest stable
- Class:
RDoc::Parser::C
find_attr_comment(attr_name)public
No documentation available.
# File lib/rdoc/parser/c.rb, line 267
def find_attr_comment(attr_name)
if @content =~ %{((?>/\*.*?\*/\s+))
rb_define_attr\((?:\s*(\w+),)?\s*"#{attr_name}"\s*,.*?\)\s*;}mi
$1
elsif @content =~ %{Document-attr:\s#{attr_name}\s*?\n((?>.*?\*/))}
$1
else
''
end
end