class Decode::Comment::Parameter

Describes a named method parameter.

Constants

PATTERN

Attributes

name[R]

The name of the parameter. @attribute [String]

type[R]

The type of the attribute. @attribute [String]

Public Class Methods

build(directive, match) click to toggle source
# File lib/decode/comment/parameter.rb, line 32
def self.build(directive, match)
        node = self.new(directive, match[:name], match[:type])
        
        if details = match[:details]
                node.add(Text.new(details))
        end
        
        return node
end
new(directive, name, type) click to toggle source
Calls superclass method
# File lib/decode/comment/parameter.rb, line 42
def initialize(directive, name, type)
        super(directive)
        
        @name = name
        @type = type
end