Sha256: 42ddbadbef8a46d820c411419ffb363b420631d9f01eca6061dfbcca8924e245

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 Bytes

Contents

#!/usr/bin/env ruby -wKU

module Scout
  class Plugin
    class << self
      attr_reader :last_defined

      def inherited(new_plugin)
        @last_defined = new_plugin
      end

      def load(last_run, memory, options)
        new(last_run, memory, options)
      end
    end

    # Creates a new Scout Plugin to run.
    # 
    def initialize(last_run, memory, options)
      @last_run = last_run
      @memory   = memory
      @options  = options
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scout-1.1.0 lib/scout/plugin.rb
scout-1.1.1 lib/scout/plugin.rb
scout-1.1.3 lib/scout/plugin.rb
scout-1.1.4 lib/scout/plugin.rb
scout-1.1.2 lib/scout/plugin.rb