Class: Parslet::Scope

### Home Classes Methods

### In Files

- lib/parslet/scope.rb

### Parent

Object

### Namespace

- CLASS Parslet::Scope::Binding
- CLASS Parslet::Scope::NotFound

### Methods

- ::new
- #[]
- #[]=
- #pop
- #push

### Files

- README

### Class/Module Index

Quicksearch

- Parslet
- Parslet::Atoms
- Parslet::Atoms::Alternative
- Parslet::Atoms::Base
- Parslet::Atoms::CanFlatten
- Parslet::Atoms::Capture
- Parslet::Atoms::Context
- Parslet::Atoms::DSL
- Parslet::Atoms::Dynamic
- Parslet::Atoms::Entity
- Parslet::Atoms::Lookahead
- Parslet::Atoms::Named
- Parslet::Atoms::Precedence
- Parslet::Atoms::Re
- Parslet::Atoms::Repetition
- Parslet::Atoms::Scope
- Parslet::Atoms::Sequence
- Parslet::Atoms::Str
- Parslet::Cause
- Parslet::ClassMethods
- Parslet::DelayedMatchConstructor
- Parslet::ErrorReporter
- Parslet::ErrorReporter::Deepest
- Parslet::ErrorReporter::Tree
- Parslet::Expression
- Parslet::Expression::Treetop
- Parslet::Expression::Treetop::Parser
- Parslet::Expression::Treetop::Transform
- Parslet::ParseFailed
- Parslet::Parser
- Parslet::Parser::PrettyPrinter
- Parslet::Parser::Visitors
- Parslet::Parser::Visitors::Citrus
- Parslet::Parser::Visitors::Treetop
- Parslet::Pattern
- Parslet::Pattern::SequenceBind
- Parslet::Pattern::SimpleBind
- Parslet::Pattern::SubtreeBind
- Parslet::Scope
- Parslet::Scope::Binding
- Parslet::Scope::NotFound
- Parslet::Slice
- Parslet::Source
- Parslet::Source::LineCache
- Parslet::Source::RangeSearch
- Parslet::Transform
- Parslet::Transform::Context

No matching classes.

# Parslet::Scope

### Public Class Methods

new() click to toggle source

    # File lib/parslet/scope.rb, line 32
    def initialize
      @current = Binding.new
    end

### Public Instance Methods

[](k) click to toggle source

    # File lib/parslet/scope.rb, line 25
    def [](k)
      @current[k]
    end

[]=(k,v) click to toggle source

    # File lib/parslet/scope.rb, line 28
    def []=(k,v)
      @current[k] = v
    end

pop() click to toggle source

    # File lib/parslet/scope.rb, line 39
    def pop
      @current = @current.parent
    end

push() click to toggle source

    # File lib/parslet/scope.rb, line 36
    def push
      @current = Binding.new(@current)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.