Skip to content

Instantly share code, notes, and snippets.

@dulao5
Created December 21, 2016 08:24
Show Gist options
  • Save dulao5/2da922c61c11239e72c7a62a435127a0 to your computer and use it in GitHub Desktop.
Save dulao5/2da922c61c11239e72c7a62a435127a0 to your computer and use it in GitHub Desktop.
NilClass debug
# debug error : undefined method stage for nil:NilClass
class NilClass
def stage
puts caller.join("\t")
nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment