Sha256: 58f45abd095cd55b5921bc7a429c5574d2ea77755e36ef6cbfb4a30a52af265b

Contents?: true

Size: 493 Bytes

Versions: 12

Compression:

Stored size: 493 Bytes

Contents

module DataMiner
  class Step
    class Callback < Step
      attr_accessor :foreign_step
      
      def initialize(configuration, foreign_step)
        @configuration = configuration
        @foreign_step = foreign_step
        @number = "(last)"
      end
      
      def perform(*args)
        foreign_step.callback
        $stderr.puts "performed #{signature}"
      end
      
      def signature
        "#{super} (on behalf of #{foreign_step.signature})"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
seamusabshere-data_miner-0.1.0 lib/data_miner/step/callback.rb
seamusabshere-data_miner-0.1.2 lib/data_miner/step/callback.rb
seamusabshere-data_miner-0.1.3 lib/data_miner/step/callback.rb
seamusabshere-data_miner-0.1.5 lib/data_miner/step/callback.rb
seamusabshere-data_miner-0.1.6 lib/data_miner/step/callback.rb
seamusabshere-data_miner-0.2.0 lib/data_miner/step/callback.rb
seamusabshere-data_miner-0.2.1 lib/data_miner/step/callback.rb
data_miner-0.2.6 lib/data_miner/step/callback.rb
data_miner-0.2.5 lib/data_miner/step/callback.rb
data_miner-0.2.4 lib/data_miner/step/callback.rb
data_miner-0.2.3 lib/data_miner/step/callback.rb
data_miner-0.2.2 lib/data_miner/step/callback.rb