module RubyLexer::SSWrapper
Public Instance Methods
beginning_of_line?()
click to toggle source
# File lib/ruby_lexer.rb, line 1002 def beginning_of_line? ss.bol? end
Also aliased as: bol?
check(re)
click to toggle source
# File lib/ruby_lexer.rb, line 1008 def check re maybe_pop_stack ss.check re end
end_of_stream?()
click to toggle source
# File lib/ruby_lexer.rb, line 1014 def end_of_stream? ss.eos? end
Also aliased as: eos?
getch()
click to toggle source
# File lib/ruby_lexer.rb, line 1020 def getch c = ss.getch c = ss.getch if c == "\r" && ss.peek(1) == "\n" c end
in_heredoc?()
click to toggle source
# File lib/ruby_lexer.rb, line 1034 def in_heredoc? !!self.old_ss end
match()
click to toggle source
# File lib/ruby_lexer.rb, line 1026 def match ss end
matched()
click to toggle source
# File lib/ruby_lexer.rb, line 1030 def matched ss.matched end
maybe_pop_stack()
click to toggle source
# File lib/ruby_lexer.rb, line 1038 def maybe_pop_stack if ss.eos? && in_heredoc? then self.ss_pop self.lineno_pop end end
pos()
click to toggle source
# File lib/ruby_lexer.rb, line 1045 def pos ss.pos end
pos=(n)
click to toggle source
# File lib/ruby_lexer.rb, line 1049 def pos= n ss.pos = n end
rest()
click to toggle source
# File lib/ruby_lexer.rb, line 1053 def rest ss.rest end
scan(re)
click to toggle source
# File lib/ruby_lexer.rb, line 1057 def scan re maybe_pop_stack ss.scan re end
scanner_class()
click to toggle source
# File lib/ruby_lexer.rb, line 1063 def scanner_class # TODO: design this out of oedipus_lex. or something. RPStringScanner end
ss_string()
click to toggle source
# File lib/ruby_lexer.rb, line 1067 def ss_string ss.string end
ss_string=(s)
click to toggle source
# File lib/ruby_lexer.rb, line 1071 def ss_string= s raise "Probably not" ss.string = s end
string=(s)
click to toggle source
# File lib/ruby_lexer.rb, line 998 def string= s ss.string= s end
unscan()
click to toggle source
# File lib/ruby_lexer.rb, line 1076 def unscan ss.unscan end