diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2012-09-07 14:12:05 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2012-09-07 14:12:05 +0200 |
commit | 1f88ad0c81707c5419e93141d5acddd842f8afe7 (patch) | |
tree | 431d6a8632aa904f825bef3d0a8c04ff1ef80c41 /etc/token_class_hierarchy.rb | |
parent | 5c5954d3dbcb9576fbd17a12d70014a9bef91a14 (diff) | |
parent | 9ede776bc89e90ea6689f9690ae130b16d20493c (diff) | |
download | coderay-1f88ad0c81707c5419e93141d5acddd842f8afe7.tar.gz |
Merge branch 'master' into multiline-inline-diff
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 |