Skip to content

Instantly share code, notes, and snippets.

@wojtekmach
Created March 20, 2012 14:43
Show Gist options
  • Select an option

  • Save wojtekmach/2136340 to your computer and use it in GitHub Desktop.

Select an option

Save wojtekmach/2136340 to your computer and use it in GitHub Desktop.
metadata
def it description = "", metadata = {}, &block
if metadata && !metadata.empty? # perhaphs just `if !metadata.empty?` will suffice?
# your code
else
old_it description, &block
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment