Skip to content

Instantly share code, notes, and snippets.

@banderson623
Created November 8, 2013 19:12
Show Gist options
  • Save banderson623/7375963 to your computer and use it in GitHub Desktop.
Save banderson623/7375963 to your computer and use it in GitHub Desktop.
def trivial_method(a,b)
if a
true
else
false
end
end
# convert to
def trivial_method(a,b)
if a
result = true
else
result = false
end
puts "trivial_method: #{result.inspect}"
result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment