Sha256: f71149418ab5417b5b08ba8752124ddeb79906941a54d6dfd10e3c71b7f91e52

Contents?: true

Size: 311 Bytes

Versions: 9

Compression:

Stored size: 311 Bytes

Contents

module Rake::CompTree
  #
  # TaskNode is a Node which discards its results
  #
  class TaskNode < Node
    def compute #:nodoc:
      @function.call
      true
    end

    class << self
      #
      # TaskNode always returns true.
      #
      def discard_result?
        true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
drake-0.8.2.1.0.11 lib/rake/comp_tree/task_node.rb
drake-0.8.2.1.0.6 lib/rake/comp_tree/task_node.rb
drake-0.8.2.1.0.7 lib/rake/comp_tree/task_node.rb
drake-0.8.3.1.0.14 lib/rake/comp_tree/task_node.rb
drake-0.8.2.1.0.10 lib/rake/comp_tree/task_node.rb
drake-0.8.2.1.0.12 lib/rake/comp_tree/task_node.rb
drake-0.8.2.1.0.13 lib/rake/comp_tree/task_node.rb
drake-0.8.2.1.0.9 lib/rake/comp_tree/task_node.rb
drake-0.8.4.1.0.15 lib/rake/comp_tree/task_node.rb