Skip to content

Commit

Permalink
Add documentation for with_environment parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sds committed Jun 23, 2015
1 parent 09bd37b commit 3902733
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/haml_lint/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def count_consecutive(items, offset = 0, &block)

# Calls a block of code with a modified set of environment variables,
# restoring them once the code has executed.
#
# @param env [Hash] environment variables to set
def with_environment(env)
old_env = {}
env.each do |var, value|
Expand Down

0 comments on commit 3902733

Please sign in to comment.