Created
February 26, 2015 04:21
-
-
Save jackdempsey/23b5de780226d6309194 to your computer and use it in GitHub Desktop.
This file contains 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
2.2.0 :058 > def action | |
2.2.0 :059?> if true | |
2.2.0 :060?> puts "call some api thing" && return | |
2.2.0 :061?> end | |
2.2.0 :062?> puts "does this happen" | |
2.2.0 :063?> end | |
=> :action | |
2.2.0 :064 > action | |
=> nil | |
2.2.0 :065 > def action | |
2.2.0 :066?> if true | |
2.2.0 :067?> puts "call some api thing" and return | |
2.2.0 :068?> end | |
2.2.0 :069?> puts "does this happen" | |
2.2.0 :070?> end | |
=> :action | |
2.2.0 :071 > action | |
call some api thing | |
does this happen | |
=> nil | |
2.2.0 :072 > def action | |
2.2.0 :073?> if true | |
2.2.0 :074?> puts "call some api thing" | |
2.2.0 :075?> return | |
2.2.0 :076?> end | |
2.2.0 :077?> puts "does this happen" | |
2.2.0 :078?> end | |
=> :action | |
2.2.0 :079 > action | |
call some api thing | |
=> nil | |
2.2.0 :080 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment