Class: Gauntlt::Attack

Inherits:
Object
  • Object
show all
Defined in:
lib/gauntlt/attack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, tags = [], format = "") ⇒ Attack


7
8
9
# File 'lib/gauntlt/attack.rb', line 7

def initialize(path, tags=[], format="")
  self.runtime = Runtime.new(path, tags, format)
end

Instance Attribute Details

#runtimeObject

Returns the value of attribute runtime


5
6
7
# File 'lib/gauntlt/attack.rb', line 5

def runtime
  @runtime
end

Instance Method Details

#runObject


11
12
13
# File 'lib/gauntlt/attack.rb', line 11

def run
  runtime.execute!
end