Parent

RubyParserStuff::Sexp

Attributes

paren[W]

Public Instance Methods

add(x) click to toggle source
# File lib/ruby_parser_extras.rb, line 1343
def add x
  concat x
end
add_all(x) click to toggle source
# File lib/ruby_parser_extras.rb, line 1347
def add_all x
  raise "no: #{self.inspect}.add_all #{x.inspect}" # TODO: need a test to trigger this
end
block_pass?() click to toggle source
# File lib/ruby_parser_extras.rb, line 1351
def block_pass?
  any? { |s| Sexp === s && s[0] == :block_pass }
end
paren() click to toggle source
# File lib/ruby_parser_extras.rb, line 1329
def paren
  @paren ||= false
end
to_sym() click to toggle source
# File lib/ruby_parser_extras.rb, line 1338
def to_sym
  raise "no"
  self.value.to_sym
end
value() click to toggle source
# File lib/ruby_parser_extras.rb, line 1333
def value
  raise "multi item sexp" if size > 2
  last
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.