Module: RubyLexer::SSStackish
- Included in:
- RubyLexer
- Defined in:
- lib/ruby_lexer.rb
Instance Method Summary collapse
- #lineno_pop ⇒ Object
- #lineno_push(new_lineno) ⇒ Object
- #ss=(o) ⇒ Object
- #ss_pop ⇒ Object
- #ss_push(new_ss) ⇒ Object
Instance Method Details
#lineno_pop ⇒ Object
1092 1093 1094 1095 |
# File 'lib/ruby_lexer.rb', line 1092 def lineno_pop self.lineno = self.old_lineno self.old_lineno = nil end |
#lineno_push(new_lineno) ⇒ Object
1087 1088 1089 1090 |
# File 'lib/ruby_lexer.rb', line 1087 def lineno_push new_lineno self.old_lineno = self.lineno self.lineno = new_lineno end |
#ss=(o) ⇒ Object
1097 1098 1099 1100 1101 |
# File 'lib/ruby_lexer.rb', line 1097 def ss= o raise "Clearing ss while in heredoc!?!" if in_heredoc? @old_ss = nil super end |
#ss_pop ⇒ Object
1108 1109 1110 1111 |
# File 'lib/ruby_lexer.rb', line 1108 def ss_pop @ss = self.old_ss @old_ss = nil end |
#ss_push(new_ss) ⇒ Object
1103 1104 1105 1106 |
# File 'lib/ruby_lexer.rb', line 1103 def ss_push new_ss @old_ss = self.ss @ss = new_ss end |