aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-02-15 10:02:30 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-02-15 10:02:30 +0000
commitdcc312ac215b57afc648725bb8d64ff287bf7798 (patch)
treec22365bae12a7ba7c60dbb31dd88dc3e16a214fc /vendor/gems/rdoc-2.4.3/lib/rdoc/tokenstream.rb
parent506af7a640f63b17000ccfc5e1344bbc3039c913 (diff)
Merge jpmckinney/bundler
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.rb33
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
-