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.



20
21
22
# File 'lib/b.rb', line 20

def opts
  @opts
end

Instance Method Details

#finish(job) ⇒ Object



38
39
40
# File 'lib/b.rb', line 38

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

#register(job) ⇒ Object



30
31
32
# File 'lib/b.rb', line 30

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

#run!Object



24
25
26
27
28
# File 'lib/b.rb', line 24

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

#start(job) ⇒ Object



34
35
36
# File 'lib/b.rb', line 34

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