Last active
August 19, 2019 19:09
-
-
Save mehdi-farsi/aa65dd2d844ba81c6c36ee47f9a026e1 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
Symbol.all_symbols.length # => 3893 | |
Symbol.all_symbols.grep(/Struct/) # => [:Struct] | |
:dummy_symbol | |
Symbol.all_symbols.length # => 3894 | |
Symbol.all_symbols.grep(/dummy_symbol/) # => [:dummy_symbol] | |
dummy_variable = nil | |
Symbol.all_symbols.length # => 3895 | |
Symbol.all_symbols.grep(/dummy_variable/) # => [:dummy_variable] | |
def dummy_method; end | |
Symbol.all_symbols.length # => 3896 | |
Symbol.all_symbols.grep(/dummy_method/) # => [:dummy_method] | |
class DummyClass; end | |
Symbol.all_symbols.length # => 3897 | |
Symbol.all_symbols.grep(/DummyClass/) # => [:DummyClass] | |
Symbol.all_symbols.grep(/Hash/) # => [:Hash] | |
class Hash; end | |
Symbol.all_symbols.length # => 3897 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment