Flowdock
method

find_attr_comment

Importance_0
v1_9_1_378 - Show latest stable - 0 notes - Class: C
find_attr_comment(attr_name) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rdoc/parser/c.rb, line 257
  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
Register or log in to add new notes.