Class: Billy::Goat
- Inherits:
-
Object
- Object
- Billy::Goat
- Defined in:
- lib/billygoat/goat.rb
Instance Method Summary collapse
Instance Method Details
#brain ⇒ Object
5 6 7 |
# File 'lib/billygoat/goat.rb', line 5 def brain @brain ||= Brain.new end |
#execute(*args) ⇒ Object
9 10 11 12 13 |
# File 'lib/billygoat/goat.rb', line 9 def execute(*args) args.shift if brain.recall(args.first) brain.execute(*args) end |