[...]

>> wondering if there are any plans to provide the corresponding type of
>> thing for methods, i.e. local instance methods. To clarify, a local
>> instance method is a method that does not participate in the
>> inheritance chain and is only callable from within the class it is
>> defined.


>
> I don't understand. Isn't what the private keyword is for?

See the example below:

class F
  def f
    b
  end
  private
  def b
    puts "in F#b"
  end
end

f=F.new
f.f   # => "in F#b"

class G < F
  # optional
  private
  def b
    puts "in G#b"
  end
end

g=G.new
g.f   # => "in G#b", I'd expect "in F#b"



Patrick