module RubyLexer::SSWrapper
Public Instance Methods
beginning_of_line?()
click to toggle source
# File lib/ruby_lexer.rb, line 1010 def beginning_of_line? ss.bol? end
Also aliased as: bol?
check(re)
click to toggle source
# File lib/ruby_lexer.rb, line 1016 def check re maybe_pop_stack ss.check re end
end_of_stream?()
click to toggle source
# File lib/ruby_lexer.rb, line 1022 def end_of_stream? ss.eos? end
Also aliased as: eos?
getch()
click to toggle source
# File lib/ruby_lexer.rb, line 1028 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 1042 def in_heredoc? !!self.old_ss end
match()
click to toggle source
# File lib/ruby_lexer.rb, line 1034 def match ss end
matched()
click to toggle source
# File lib/ruby_lexer.rb, line 1038 def matched ss.matched end
maybe_pop_stack()
click to toggle source
# File lib/ruby_lexer.rb, line 1046 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 1053 def pos ss.pos end
pos=(n)
click to toggle source
# File lib/ruby_lexer.rb, line 1057 def pos= n ss.pos = n end
rest()
click to toggle source
# File lib/ruby_lexer.rb, line 1061 def rest ss.rest end
scan(re)
click to toggle source
# File lib/ruby_lexer.rb, line 1065 def scan re maybe_pop_stack ss.scan re end
scanner_class()
click to toggle source
# File lib/ruby_lexer.rb, line 1071 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 1075 def ss_string ss.string end
ss_string=(s)
click to toggle source
# File lib/ruby_lexer.rb, line 1079 def ss_string= s raise "Probably not" ss.string = s end
string=(s)
click to toggle source
# File lib/ruby_lexer.rb, line 1006 def string= s ss.string= s end
unscan()
click to toggle source
# File lib/ruby_lexer.rb, line 1084 def unscan ss.unscan end