Sha256: a9ec21b134b8e5e111eee8accc70df6fc9c068741ebae35b5055e2f440ed0868

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'evented_bluepill/process_conditions/process_condition'

module EventedBluepill
  module ProcessConditions
    class AlwaysTrue < ProcessCondition
      def initialize(name, process, options = {})
        @below = options[:below]
        
        super
      end

      def run
        1
      end

      def check(value)
        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
evented_bluepill-0.0.52 lib/evented_bluepill/process_conditions/always_true.rb
evented_bluepill-0.0.51 lib/evented_bluepill/process_conditions/always_true.rb
evented_bluepill-0.0.50 lib/evented_bluepill/process_conditions/always_true.rb