Tags

class MyClass
  def m1 # this method is public
  end

  protected
  def m2 # this method is protected
  end

  private
  def m3 # this method is private
  end
end
Advertisements