Sha256: 89094d8e7e3e5758b5992ebad5205fad632354eeead3d38377610403470aee0a

Contents?: true

Size: 516 Bytes

Versions: 6

Compression:

Stored size: 516 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/job'

# Tengine::Job::DslLoader と Tengine::Job::DslBinder がincludeしているモジュールです。
# それぞれに共通のメソッドを定義します。
module Tengine::Job::DslEvaluator
  private
  def __stack_instance_variable__(ivar_name, value)
    backup = instance_variable_get(ivar_name)
    instance_variable_set(ivar_name, value)
    begin
      return yield if block_given?
    ensure
      instance_variable_set(ivar_name, backup)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tengine_job-1.1.0 lib/tengine/job/dsl_evaluator.rb
tengine_job-0.6.13 lib/tengine/job/dsl_evaluator.rb
tengine_job-0.6.12 lib/tengine/job/dsl_evaluator.rb
tengine_job-0.6.11 lib/tengine/job/dsl_evaluator.rb
tengine_job-0.6.10 lib/tengine/job/dsl_evaluator.rb
tengine_job-0.6.9 lib/tengine/job/dsl_evaluator.rb