summaryrefslogtreecommitdiff
path: root/etc/token_class_hierarchy.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2012-07-18 11:46:41 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2012-07-18 11:46:41 +0200
commita1582d7856bc385b7bad492d8fc3f02e2b9f4d94 (patch)
tree3abdb3a7d6aa00edca62fc5b36cf9a9a8242b245 /etc/token_class_hierarchy.rb
parenta4b8b094da5525354cb8a927761385825236c5a1 (diff)
downloadcoderay-a1582d7856bc385b7bad492d8fc3f02e2b9f4d94.tar.gz
remove etc folder
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