org.jruby.parser
Class RubyParserConfiguration

java.lang.Object
  extended byorg.jruby.parser.RubyParserConfiguration

public class RubyParserConfiguration
extends java.lang.Object


Constructor Summary
RubyParserConfiguration()
           
 
Method Summary
 DynamicScope getScope()
          This method returns the appropriate first scope for the parser.
 void parseAsBlock(DynamicScope existingScope)
          If we are performing an eval we should pass existing scope in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyParserConfiguration

public RubyParserConfiguration()
Method Detail

parseAsBlock

public void parseAsBlock(DynamicScope existingScope)
If we are performing an eval we should pass existing scope in. Calling this lets the parser know we need to do this.

Parameters:
existingScope - is the scope that captures new vars, etc...

getScope

public DynamicScope getScope()
This method returns the appropriate first scope for the parser.

Returns:
correct top scope for source to be parsed


Copyright © 2002-2007 JRuby Team. All Rights Reserved.