Class: ParameterDocumentation
- Inherits:
-
Object
- Object
- ParameterDocumentation
- Defined in:
- lib/model/parameter_documentation.rb
Instance Attribute Summary collapse
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
-
#initialize ⇒ ParameterDocumentation
constructor
A new instance of ParameterDocumentation.
- #name ⇒ Object
Constructor Details
#initialize ⇒ ParameterDocumentation
Returns a new instance of ParameterDocumentation.
4 5 6 |
# File 'lib/model/parameter_documentation.rb', line 4 def initialize @tokens = [] end |
Instance Attribute Details
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
2 3 4 |
# File 'lib/model/parameter_documentation.rb', line 2 def tokens @tokens end |
Instance Method Details
#name ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/model/parameter_documentation.rb', line 8 def name @tokens.each do |token| if token.value.match(/@param (\w*)/) return $1 end end end |