title: How to delete attr_accessor in ruby
body: <p>In ruby, if I have a class <code>greet</code> and has method <code>say_hi</code> that prints out <code>"Hello #{@name}"</code> when name is a instance variable of class <code>greet</code>, and I allow access to <code>@name</code> by adding in the <code>attr_accessor :name</code>, so now I can directly change <code>@name</code>. </p>
  
  <p>But how do I remove this <code>attr_accessor</code> if I no longer want people to be able to change <code>@name</code> directly? </p>