Class: ParameterDocumentation

Inherits:
Object
  • Object
show all
Defined in:
lib/model/parameter_documentation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParameterDocumentation

Returns a new instance of ParameterDocumentation.



4
5
6
# File 'lib/model/parameter_documentation.rb', line 4

def initialize
  @tokens = []
end

Instance Attribute Details

#tokensObject (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

#nameObject



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