Class: WSDSL::Documentation::NamespacedParam
- Inherits:
-
Object
- Object
- WSDSL::Documentation::NamespacedParam
- Defined in:
- lib/documentation.rb
Overview
Namespaced param documentation
Instance Attribute Summary collapse
-
#name ⇒ String, Symbol
readonly
The name of the namespaced, usually a symbol.
-
#params ⇒ Hash
readonly
The list of params within the namespace.
Instance Method Summary collapse
-
#initialize(name) ⇒ NamespacedParam
constructor
A new instance of NamespacedParam.
-
#param(name, desc) ⇒ String
Sets the description/documentation of a specific namespaced param.
Constructor Details
#initialize(name) ⇒ NamespacedParam
Returns a new instance of NamespacedParam.
62 63 64 65 |
# File 'lib/documentation.rb', line 62 def initialize(name) @name = name @params = {} end |
Instance Attribute Details
#name ⇒ String, Symbol (readonly)
Returns The name of the namespaced, usually a symbol.
55 56 57 |
# File 'lib/documentation.rb', line 55 def name @name end |
#params ⇒ Hash (readonly)
Returns The list of params within the namespace.
59 60 61 |
# File 'lib/documentation.rb', line 59 def params @params end |
Instance Method Details
#param(name, desc) ⇒ String
Sets the description/documentation of a specific namespaced param
71 72 73 |
# File 'lib/documentation.rb', line 71 def param(name, desc) @params[name] = desc end |