Class: Abaddon::Runner
- Inherits:
-
Object
- Object
- Abaddon::Runner
- Defined in:
- lib/abaddon.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(args) ⇒ Runner
Returns a new instance of Runner.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/abaddon.rb', line 15 def initialize(args) if args.size > 0 args.each do |template| if Abaddon.templates.include? template Abaddon.load template else puts "Oops! I can't do that (yet). Available templates are:" Abaddon.templates.each { |s| print s } puts end end else puts "Aviable templates are:" Abaddon.templates.each { |s| print s } puts end end |