Class: B::Ase

Inherits:
Object
  • Object
show all
Includes:
Blockenspiel::DSL
Defined in:
lib/b.rb

Overview

B::Ase

Direct Known Subclasses

Enchmark, Enchmark::Job

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



22
23
24
# File 'lib/b.rb', line 22

def opts
  @opts
end

Instance Method Details

#finish(job) ⇒ Object



40
41
42
# File 'lib/b.rb', line 40

def finish(job)
  @parent.finish(job) if @parent.respond_to? :finish
end

#register(job) ⇒ Object



32
33
34
# File 'lib/b.rb', line 32

def register(job)
  @parent.register(job) if @parent.respond_to? :register
end

#run!Object



26
27
28
29
30
# File 'lib/b.rb', line 26

def run!
  @children.map {|c| c.run! unless c.nil?} unless @children.nil?
  post_run if self.respond_to? :post_run
  @children.nil? ? [] : @children.map(&:to_h)
end

#start(job) ⇒ Object



36
37
38
# File 'lib/b.rb', line 36

def start(job)
  @parent.start(job) if @parent.respond_to? :start
end