Module: Odsl::Runners

Included in:
Dsl
Defined in:
lib/odsl/runners.rb

Instance Method Summary collapse

Instance Method Details

#run(method) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/odsl/runners.rb', line 3

def run(method)

  instance_eval(method.to_s)

  if @finish_with.is_a? Array
  
    @finish_with.map { |variable| instance_variable_get("@#{variable}") }
  else
    instance_variable_get "@#{@finish_with}"
  end
end