Created
February 11, 2017 05:18
-
-
Save jaspervdj/17ea958f5425615c0279810c4c1fe2f6 to your computer and use it in GitHub Desktop.
ruby lexer is a cool guy eh
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 test01 | |
a = 32 | |
b = 2 | |
i = 2 | |
a /b/i | |
end | |
def test02 | |
def a(x) | |
x | |
end | |
a /b/i | |
end | |
puts test01.class # Prints "Integer" | |
puts test02.class # Prints "Regexp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment