ok

Mini Shell

Direktori : /opt/alt/ruby18/share/ri/1.8/system/Object/
Upload File :
Current File : //opt/alt/ruby18/share/ri/1.8/system/Object/remove_instance_variable-i.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Removes the named instance variable from <em>obj</em>, returning that variable's value.
- !ruby/struct:SM::Flow::VERB 
  body: "   class Dummy\n     attr_reader :var\n     def initialize\n       @var = 99\n     end\n     def remove\n       remove_instance_variable(:@var)\n     end\n   end\n   d = Dummy.new\n   d.var      #=&gt; 99\n   d.remove   #=&gt; 99\n   d.var      #=&gt; nil\n"
full_name: Object#remove_instance_variable
is_singleton: false
name: remove_instance_variable
params: |
  obj.remove_instance_variable(symbol)    => obj

visibility: public

Zerion Mini Shell 1.0