lib/tap/support/declarations.rb in bahuvrihi-tap-0.10.0 vs lib/tap/support/declarations.rb in bahuvrihi-tap-0.10.1

- old
+ new

@@ -45,11 +45,11 @@ end protected def config(key, value=nil, options={}, &block) - caller.each_with_index do |line, index| + caller.each do |line| case line when /^(([A-z]:)?[^:]+):(\d+)/ options[:desc] = Support::Lazydoc.register($1, $3.to_i - 1) break end @@ -57,10 +57,10 @@ [:config, key, value, options, block] end def config_attr(key, value=nil, options={}, &block) - caller.each_with_index do |line, index| + caller.each do |line| case line when /^(([A-z]:)?[^:]+):(\d+)/ options[:desc] = Support::Lazydoc.register($1, $3.to_i - 1) break end \ No newline at end of file