Sha256: bbbccad9498335b2d9b514695e856fb5c69e1958a6fbd399fbc522cc7a0f9a8c

Contents?: true

Size: 240 Bytes

Versions: 13

Compression:

Stored size: 240 Bytes

Contents

module ActiveReporter
  module Evaluator
    class Block < ActiveReporter::Evaluator::Base
      def evaluate(*args)
        block.call(*args)
      end

      private

      def block
        opts.fetch(:block)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_reporter-0.7.1 lib/active_reporter/evaluator/block.rb
active_reporter-0.6.5 lib/active_reporter/evaluator/block.rb
active_reporter-0.6.4 lib/active_reporter/evaluator/block.rb
active_reporter-0.6.3 lib/active_reporter/evaluator/block.rb
active_reporter-0.6.2 lib/active_reporter/evaluator/block.rb
active_reporter-0.6.1 lib/active_reporter/evaluator/block.rb
active_reporter-0.6.0 lib/active_reporter/evaluator/block.rb
active_reporter-0.5.13 lib/active_reporter/evaluator/block.rb
active_reporter-0.5.12 lib/active_reporter/evaluator/block.rb
active_reporter-0.5.11 lib/active_reporter/evaluator/block.rb
active_reporter-0.5.10 lib/active_reporter/evaluator/block.rb
active_reporter-0.5.9 lib/active_reporter/evaluator/block.rb
active_reporter-0.5.8 lib/active_reporter/evaluator/block.rb