Method: WSDSL::Documentation::ElementDoc#attribute

Defined in:
lib/documentation.rb

#attribute(name, desc) ⇒ Object

Parameters:

  • name (String)

    The name of the attribute described

  • desc (String)

    The description of the attribute

Since:

  • 0.0.3



42
43
44
# File 'lib/documentation.rb', line 42

def attribute(name, desc)
  @attributes[name] = desc
end