Class: Modelo
- Inherits:
-
Object
- Object
- Modelo
- Defined in:
- lib/PhariDocGen/Modelo.rb
Instance Method Summary collapse
-
#initialize(givenName, methodList, routeList) ⇒ Modelo
constructor
A new instance of Modelo.
- #methods ⇒ Object
- #name ⇒ Object
- #printSelf ⇒ Object
- #routes ⇒ Object
Constructor Details
#initialize(givenName, methodList, routeList) ⇒ Modelo
Returns a new instance of Modelo.
6 7 8 9 10 |
# File 'lib/PhariDocGen/Modelo.rb', line 6 def initialize(givenName, methodList, routeList) @name = givenName @methods = methodList @routes = routeList end |
Instance Method Details
#methods ⇒ Object
24 25 26 |
# File 'lib/PhariDocGen/Modelo.rb', line 24 def methods @methods end |
#name ⇒ Object
20 21 22 |
# File 'lib/PhariDocGen/Modelo.rb', line 20 def name @name end |
#printSelf ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/PhariDocGen/Modelo.rb', line 12 def printSelf puts @name.to_s puts "#{@name} methods:" @methods.each(&:printSelf) puts "#{@name} routes:" @routes.each(&:printSelf) end |
#routes ⇒ Object
28 29 30 |
# File 'lib/PhariDocGen/Modelo.rb', line 28 def routes @routes end |