Class: Metodo
- Inherits:
-
Object
- Object
- Metodo
- Defined in:
- lib/phari_doc_gen/metodo.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(givenName, givenType, inputList, outputList, givenDescription) ⇒ Metodo
constructor
A new instance of Metodo.
- #inputs ⇒ Object
- #name ⇒ Object
- #outputs ⇒ Object
- #printSelf ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(givenName, givenType, inputList, outputList, givenDescription) ⇒ Metodo
Returns a new instance of Metodo.
17 18 19 20 21 22 23 |
# File 'lib/phari_doc_gen/metodo.rb', line 17 def initialize(givenName, givenType, inputList, outputList, givenDescription) @name = givenName @type = givenType @inputs = inputList @outputs = outputList @description = givenDescription end |
Instance Method Details
#description ⇒ Object
41 42 43 |
# File 'lib/phari_doc_gen/metodo.rb', line 41 def description @description end |
#inputs ⇒ Object
33 34 35 |
# File 'lib/phari_doc_gen/metodo.rb', line 33 def inputs @inputs end |
#name ⇒ Object
29 30 31 |
# File 'lib/phari_doc_gen/metodo.rb', line 29 def name @name end |
#outputs ⇒ Object
37 38 39 |
# File 'lib/phari_doc_gen/metodo.rb', line 37 def outputs @outputs end |
#printSelf ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/phari_doc_gen/metodo.rb', line 45 def printSelf puts"\n\nNome: #{@name}Tipo: #{@type}Descrição: #{@description}\nInputs:" @inputs.each(&:printSelf) puts'Outputs:' @outputs.each do |output| if output != 'nil' output.printSelf else puts'nil' end end end |
#type ⇒ Object
25 26 27 |
# File 'lib/phari_doc_gen/metodo.rb', line 25 def type @type end |