lib/ruby_parser/bm_sexp.rb
#Returns body of a method definition, class, or module.
#This will be an untyped Sexp containing a list of Sexps from the body.
Returns body of a method definition, class, or module.
This will be an untyped Sexp containing a list of Sexps from the body.
Returns body of a method definition class or module . This will be an untyped Sexp containing a list of Sexps from the body .
def body
    expect :defn, :defs, :class, :module
    case self.node_type
    when :defn, :class
      self.sexp_body(3)
    when :defs
      self.sexp_body(4)
    when :module
      self.sexp_body(2)
    end
  end
def body expect :defn , :defs , :class , :module case self . node_type when :defn , :class self . sexp_body ( 3 ) when :defs self . sexp_body ( 4 ) when :module self . sexp_body ( 2 ) end end
Returns body of a method definition, class, or module.
Returns body of a method definition class or module .