Skip to content

Instantly share code, notes, and snippets.

@flash-gordon
Created April 4, 2016 22:30
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 flash-gordon/5350ebbfe5a992d219143a606ca01ec0 to your computer and use it in GitHub Desktop.
Save flash-gordon/5350ebbfe5a992d219143a606ca01ec0 to your computer and use it in GitHub Desktop.
def resolve_missing_value(result, key, type)
if type.is_a?(Default)
result[key] = type[type.evaluate]
else
result[key] = type[nil]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment