Skip to content

Instantly share code, notes, and snippets.

Created September 24, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/57bce254fe36d3729c37 to your computer and use it in GitHub Desktop.
Save anonymous/57bce254fe36d3729c37 to your computer and use it in GitHub Desktop.
63 def env_value(required, *path)
64 value = path.inject(mynode) do |location, key|
65 location.respond_to?(:keys) ? location[key] : nil
66 end
67 env_check_required(required, value, *path)
68 value
69 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment