Created
December 16, 2015 23:31
-
-
Save msroot/331391a5fc6315d6ccc8 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
| @scanner = RubyLex.new | |
| @scanner.exception_on_syntax_error = false | |
| a = @scanner.set_prompt do; puts 1; end | |
| => #<Proc:0x007f845529df70@(pry):37> | |
| a.call | |
| 1 | |
| => nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment