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.
217 218 219 |
# File 'lib/autodoc/document.rb', line 217 def initialize(validator) @validator = validator end |
Instance Attribute Details
#validator ⇒ Object (readonly)
Returns the value of attribute validator.
215 216 217 |
# File 'lib/autodoc/document.rb', line 215 def validator @validator end |
Instance Method Details
#to_s ⇒ Object
221 222 223 |
# File 'lib/autodoc/document.rb', line 221 def to_s "#{body}#{payload}" end |