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.Encodingorg.jcodings.Encodingintgets()voidsetEncoding(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:
getEncodingin classLexerSource
-
setEncoding
public void setEncoding(org.jcodings.Encoding encoding) - Specified by:
setEncodingin classLexerSource
-
gets
- Specified by:
getsin classLexerSource
-
getOffset
public int getOffset()- Specified by:
getOffsetin classLexerSource
-
getRemainingAsChannel
- Specified by:
getRemainingAsChannelin classLexerSource
-
getRemainingAsIO
- Specified by:
getRemainingAsIOin classLexerSource
-