diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-03-12 13:05:19 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-03-12 13:05:19 +0000 |
commit | 37bff4c0154b57b35a3194a9b31a9422496b955b (patch) | |
tree | 61592a6bb9d1d9fea378a6e4efa8fdf7d5525b8a /vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb | |
parent | 8b49dc894066e452232cabd09333895487f86986 (diff) | |
parent | 8acea24f98268fbb9b73b66b9e98a1788a3b30ac (diff) |
Merge branch 'merged-bundler' into develop
Diffstat (limited to 'vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb')
-rw-r--r-- | vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb b/vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb deleted file mode 100644 index 0a1eb9130..000000000 --- a/vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb +++ /dev/null @@ -1,33 +0,0 @@ -module RDoc; end - -## -# A TokenStream is a list of tokens, gathered during the parse of some entity -# (say a method). Entities populate these streams by being registered with the -# lexer. Any class can collect tokens by including TokenStream. From the -# outside, you use such an object by calling the start_collecting_tokens -# method, followed by calls to add_token and pop_token. - -module RDoc::TokenStream - - def token_stream - @token_stream - end - - def start_collecting_tokens - @token_stream = [] - end - - def add_token(tk) - @token_stream << tk - end - - def add_tokens(tks) - tks.each {|tk| add_token(tk)} - end - - def pop_token - @token_stream.pop - end - -end - |