Class: RubyLexer::OutlinedHereBodyToken

Inherits:
HereBodyToken show all
Defined in:
lib/rubylexer/token.rb,
lib/rubylexer/tokenprinter.rb

Overview


Instance Attribute Summary

Attributes inherited from HereBodyToken

#close, #headtok, #linecount, #open

Attributes inherited from IgnoreToken

#linecount

Attributes inherited from Token

#allow_ooo_offset, #as, #endline, #ident, #offset, #startline, #tag

Instance Method Summary collapse

Methods inherited from HereBodyToken

#endline=, #initialize, #line, #startline

Methods inherited from IgnoreToken

#initialize

Methods inherited from Token

#dump, #error, #has_no_block?, #initialize, #inspect, #linecount, #orig_inspect

Constructor Details

This class inherits a constructor from RubyLexer::HereBodyToken

Instance Method Details

#to_sObject

appears to be unused



771
772
773
774
775
776
777
778
# File 'lib/rubylexer/token.rb', line 771

def to_s
  assert HerePlaceholderToken===@headtok
  result=@headtok.string
  result=result.to_s(:simple_transform).match(/^"(.*)"$/m)[1]
  return result +
         @headtok.ender +
         "\n"
end

#ws_munge(tp) ⇒ Object



85
86
87
# File 'lib/rubylexer/tokenprinter.rb', line 85

def ws_munge(tp)
  nil
end