Flowdock
method

parse_meta_attr

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: Ruby
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.