Class: Autodoc::Document::Parameter
- Inherits:
-
Object
- Object
- Autodoc::Document::Parameter
- Defined in:
- lib/autodoc/document.rb
Instance Attribute Summary collapse
-
#validator ⇒ Object
readonly
Returns the value of attribute validator.
Instance Method Summary collapse
-
#initialize(validator) ⇒ Parameter
constructor
A new instance of Parameter.
- #to_s ⇒ Object
Constructor Details
#initialize(validator) ⇒ Parameter
Returns a new instance of Parameter.
205 206 207 |
# File 'lib/autodoc/document.rb', line 205 def initialize(validator) @validator = validator end |
Instance Attribute Details
#validator ⇒ Object (readonly)
Returns the value of attribute validator.
203 204 205 |
# File 'lib/autodoc/document.rb', line 203 def validator @validator end |
Instance Method Details
#to_s ⇒ Object
209 210 211 |
# File 'lib/autodoc/document.rb', line 209 def to_s "#{body}#{payload}" end |