Created
November 8, 2013 19:12
-
-
Save banderson623/7375963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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