diff options
author | Nathan Youngman <git@nathany.com> | 2012-09-11 14:57:58 -0600 |
---|---|---|
committer | Nathan Youngman <git@nathany.com> | 2012-09-11 14:57:58 -0600 |
commit | 39517be0c026af1c08142680da96ea88ae8fcb2c (patch) | |
tree | 852f363f8ea07d53a1d69cef9f84a2f2b7704a91 /etc/token_class_hierarchy.rb | |
parent | 2b16d115f7d6caf21864934df763556e126d6357 (diff) | |
parent | 5f54b367d9161a3c5ac30dcc70bd8de5dc378167 (diff) | |
download | coderay-39517be0c026af1c08142680da96ea88ae8fcb2c.tar.gz |
Merge branch 'master' into lua-scanner
Diffstat (limited to 'etc/token_class_hierarchy.rb')
-rw-r--r-- | etc/token_class_hierarchy.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/etc/token_class_hierarchy.rb b/etc/token_class_hierarchy.rb deleted file mode 100644 index 4dc3f1f..0000000 --- a/etc/token_class_hierarchy.rb +++ /dev/null @@ -1,22 +0,0 @@ -class TokenClass - def self.const_missing name - const_set name, Class.new(self) - end - def self.method_missing name, &block - clas = const_missing name - if block - clas.instance_eval(&block) - end - end -end - -class Comment < TokenClass - Multiline - class Shebang < self - Foo - end -end - -p Comment::Blubb::Bla <= Comment::Blubb - -ObjectSpace.each_object(Class) { |o| p o if o < TokenClass }
\ No newline at end of file |