Class: RubyParserStuff::Sexp

### Home Classes Methods

### In Files

- lib/ruby_parser_extras.rb

### Parent

Object

### Methods

- #add_all
- #block_pass?
- #paren
- #to_sym
- #value

### Files

- Manifest.txt
- README.txt

### Class/Module Index

Quicksearch

- RubyParserStuff
- RubyParserStuff::Environment
- RubyParserStuff::Keyword
- RubyParserStuff::Keyword::KWtable
- RubyParserStuff::Ruby18Parser
- RubyParserStuff::Ruby19Parser
- RubyParserStuff::Ruby20Parser
- RubyParserStuff::Ruby21Parser
- RubyParserStuff::Ruby22Parser
- RubyParserStuff::RubyParser
- RubyParserStuff::RubyParser::SyntaxError
- RubyParserStuff::Sexp
- RubyParserStuff::StackState
- RubyParserStuff::String
- RubyLexer
- RubyLexer::ScanError
- RPStringScanner
- Ruby18Parser
- Ruby19Parser
- Ruby20Parser
- Ruby21Parser
- Ruby22Parser

No matching classes.

# RubyParserStuff::Sexp

### Attributes

paren[W]

### Public Instance Methods

add_all(x) click to toggle source

    # File lib/ruby_parser_extras.rb, line 1437
    def add_all x
      self.concat x.sexp_body
    end

block_pass?() click to toggle source

    # File lib/ruby_parser_extras.rb, line 1441
    def block_pass?
      any? { |s| Sexp === s && s[0] == :block_pass }
    end

paren() click to toggle source

    # File lib/ruby_parser_extras.rb, line 1421
    def paren
      @paren ||= false
    end

to_sym() click to toggle source

    # File lib/ruby_parser_extras.rb, line 1430
    def to_sym
      raise "no: #{self.inspect}.to_sym is a bug"
      self.value.to_sym
    end

value() click to toggle source

    # File lib/ruby_parser_extras.rb, line 1425
    def value
      raise "multi item sexp" if size > 2
      last
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.