Flowdock
method

parse_meta_attr

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Ruby

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

parse_meta_attr(context, single, tk, comment) public

Parses a meta-programmed attribute and creates an RDoc::Attr.

To create foo and bar attributes on class C with comment “My attributes”:

class C

  ##
  # :attr:
  #
  # My attributes

  my_attr :foo, :bar

end

To create a foo attribute on class C with comment “My attribute”:

class C

  ##
  # :attr: foo
  #
  # My attribute

  my_attr :foo, :bar

end
Show source
Register or log in to add new notes.