parse_meta_attr

parse_meta_attr(context, single, tk, comment)
Instance Public methods

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
doc_ruby_on_rails
2015-05-03 17:09:57
Comments
Leave a Comment

Please login to continue.