lib/ruby_parser/bm_sexp.rb
#Returns name of method being defined in a method definition.
Returns name of method being defined in a method definition.
Returns name of method being defined in a method definition .
def method_name
    expect :defn, :defs
    case self.node_type
    when :defn
      self[1]
    when :defs
      self[2]
    end
  end
def method_name expect :defn , :defs case self . node_type when :defn self [ 1 ] when :defs self [ 2 ] end end
Returns name of method being defined in a method definition.
Returns name of method being defined in a method definition .