PageRenderTime 26ms CodeModel.GetById 23ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 1ms

/tools/Ruby/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rule_recursion_overflow_error.rb

http://github.com/agross/netopenspace
Ruby | 20 lines | 14 code | 5 blank | 1 comment | 0 complexity | e8e274341240b4b7348aa77aac20557b MD5 | raw file
 1
 2module Rake
 3
 4  # Error indicating a recursion overflow error in task selection.
 5  class RuleRecursionOverflowError < StandardError
 6    def initialize(*args)
 7      super
 8      @targets = []
 9    end
10
11    def add_target(target)
12      @targets << target
13    end
14
15    def message
16      super + ": [" + @targets.reverse.join(' => ') + "]"
17    end
18  end
19
20end