Skip to content

Commit f9afaba

Browse files
committed
Don't shadow outer lvar
1 parent ffd8a35 commit f9afaba

File tree

1 file changed

+5
-5
lines changed
  • rake-tasks/crazy_fun/mappings

1 file changed

+5
-5
lines changed

rake-tasks/crazy_fun/mappings/ruby.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ def handle(fun, dir, args)
135135
desc 'Generate Ruby API docs'
136136
task "//#{dir}:docs" do |t|
137137
raise "yard is not installed, unable to generate docs" unless have_yard?
138-
task = YARD::Rake::YardocTask.new { |t|
139-
t.files = Array(files).map { |glob| Dir[glob] }.flatten
140-
t.options << "--verbose"
141-
t.options << "--readme" << args[:readme] if args.has_key?(:readme)
142-
t.options << "--output-dir" << output_dir
138+
task = YARD::Rake::YardocTask.new { |yard|
139+
yard.files = Array(files).map { |glob| Dir[glob] }.flatten
140+
yard.options << "--verbose"
141+
yard.options << "--readme" << args[:readme] if args.has_key?(:readme)
142+
yard.options << "--output-dir" << output_dir
143143
}
144144

145145
Rake::Task[task.name].invoke

0 commit comments

Comments
 (0)