Class: Parser::ParserContext
- Inherits:
-
Object
- Object
- Parser::ParserContext
- Defined in:
- lib/appswarm/tools/parser/parser_lib.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#possible ⇒ Object
readonly
Returns the value of attribute possible.
Instance Method Summary collapse
-
#initialize(str, pos) ⇒ ParserContext
constructor
A new instance of ParserContext.
- #str ⇒ Object
Constructor Details
#initialize(str, pos) ⇒ ParserContext
Returns a new instance of ParserContext.
8 9 10 11 12 |
# File 'lib/appswarm/tools/parser/parser_lib.rb', line 8 def initialize(str,pos) @str=str @pos=pos @possible=[] end |
Instance Attribute Details
#pos ⇒ Object
Returns the value of attribute pos.
7 8 9 |
# File 'lib/appswarm/tools/parser/parser_lib.rb', line 7 def pos @pos end |
#possible ⇒ Object (readonly)
Returns the value of attribute possible.
6 7 8 |
# File 'lib/appswarm/tools/parser/parser_lib.rb', line 6 def possible @possible end |
Instance Method Details
#str ⇒ Object
13 14 15 |
# File 'lib/appswarm/tools/parser/parser_lib.rb', line 13 def str @str[@pos..-1] end |