Method: YARD::Parser::Ruby::Legacy::TokenList#to_s
- Defined in:
- lib/yard/parser/ruby/legacy/token_list.rb
permalink #to_s(full_statement = false, show_block = true) ⇒ Object
[View source]
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/yard/parser/ruby/legacy/token_list.rb', line 10 def to_s(full_statement = false, show_block = true) inject([]) do |acc, token| break acc if !full_statement && TkStatementEnd === token if !show_block && TkBlockContents === token acc << "" else acc << token.text end acc end.join end |