Class: MethodParam

Inherits:
Object
  • Object
show all
Defined in:
lib/PhariDocGen/MethodParam.rb

Instance Method Summary collapse

Constructor Details

#initialize(givenName, givenType) ⇒ MethodParam

Returns a new instance of MethodParam.



5
6
7
8
# File 'lib/PhariDocGen/MethodParam.rb', line 5

def initialize(givenName, givenType)
    @name = givenName
    @type = givenType
end

Instance Method Details

#nameObject



14
15
16
# File 'lib/PhariDocGen/MethodParam.rb', line 14

def name
    @name
end

#printSelfObject



18
19
20
# File 'lib/PhariDocGen/MethodParam.rb', line 18

def printSelf
    puts"Nome: #{@name}\t\tTipo: #{@type}"
end

#typeObject



10
11
12
# File 'lib/PhariDocGen/MethodParam.rb', line 10

def type
    @type
end