class Sexp

Attributes

paren[W]

Public Instance Methods

add_all(x) click to toggle source
# File lib/rp_extensions.rb, line 64
def add_all x
  self.concat x.sexp_body
end
block_pass?() click to toggle source
# File lib/rp_extensions.rb, line 68
def block_pass?
  any? { |s| Sexp === s && s[0] == :block_pass }
end
paren() click to toggle source
# File lib/rp_extensions.rb, line 48
def paren
  @paren ||= false
end
to_sym() click to toggle source
# File lib/rp_extensions.rb, line 57
def to_sym
  raise "no: #{self.inspect}.to_sym is a bug"
  self.value.to_sym
end
value() click to toggle source
# File lib/rp_extensions.rb, line 52
def value
  raise "multi item sexp" if size > 2
  last
end