summaryrefslogtreecommitdiff
path: root/etc/token_class_hierarchy.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2012-10-29 02:46:46 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2012-10-29 02:46:46 +0100
commitf0ab3fbf7fcea91ecc65d3bc9d2662642f19b332 (patch)
treee4e46f112dd99258b18b0819fa87a9ecbc3a83c4 /etc/token_class_hierarchy.rb
parent11807f130e745e414d8910423a3257832347d237 (diff)
parentcab119c814b3470a7dd3e8079df0d95f9151da42 (diff)
downloadcoderay-f0ab3fbf7fcea91ecc65d3bc9d2662642f19b332.tar.gz
Merge branch 'master' into bash-scanner
Diffstat (limited to 'etc/token_class_hierarchy.rb')
-rw-r--r--etc/token_class_hierarchy.rb22
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