class Doxyparser::Param
Each of the input parameters of a {Function}
Attributes
declname[R]
Declared name of parameter
type[R]
Type
of parameter
value[R]
Default value of parameter
Private Instance Methods
find_name()
click to toggle source
# File lib/nodes/param.rb, line 15 def find_name 'param' # Default name if nothing else end
init_attributes()
click to toggle source
# File lib/nodes/param.rb, line 19 def init_attributes type_temp = @node.xpath("type") return if type_temp.nil? || type_temp.empty? @type = Type.new(node: type_temp[0], parent: @parent) @name = @type.name declname_temp = @node.xpath("declname") return if declname_temp.nil? || declname_temp.empty? @declname = declname_temp[0].content @name += @declname @basename = @declname value_temp = @node.xpath("defval") return if value_temp.nil? || value_temp.empty? @value = value_temp[0].content end