Package org.jruby.lexer
Class GetsLexerSource
java.lang.Object
org.jruby.lexer.LexerSource
org.jruby.lexer.GetsLexerSource
Lexer source from ripper getting a line at a time via 'gets' calls.
-
Field Summary
Fields inherited from class org.jruby.lexer.LexerSource
scriptLines
-
Constructor Summary
ConstructorsConstructorDescriptionGetsLexerSource
(String sourceName, int line, IRubyObject io, RubyArray scriptLines) GetsLexerSource
(String sourceName, int line, IRubyObject io, RubyArray scriptLines, org.jcodings.Encoding encoding) -
Method Summary
Modifier and TypeMethodDescriptionstatic final org.jcodings.Encoding
org.jcodings.Encoding
int
gets()
void
setEncoding
(org.jcodings.Encoding encoding) Methods inherited from class org.jruby.lexer.LexerSource
encodeExistingScriptLines, getFilename, getLineOffset
-
Constructor Details
-
GetsLexerSource
public GetsLexerSource(String sourceName, int line, IRubyObject io, RubyArray scriptLines, org.jcodings.Encoding encoding) -
GetsLexerSource
-
-
Method Details
-
frobnicateEncoding
-
getEncoding
public org.jcodings.Encoding getEncoding()- Specified by:
getEncoding
in classLexerSource
-
setEncoding
public void setEncoding(org.jcodings.Encoding encoding) - Specified by:
setEncoding
in classLexerSource
-
gets
- Specified by:
gets
in classLexerSource
-
getOffset
public int getOffset()- Specified by:
getOffset
in classLexerSource
-
getRemainingAsChannel
- Specified by:
getRemainingAsChannel
in classLexerSource
-
getRemainingAsIO
- Specified by:
getRemainingAsIO
in classLexerSource
-