Current Path : /usr/local/share/ri/1.8/system/Object/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/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 #=> 99\n d.remove #=> 99\n d.var #=> nil\n" full_name: Object#remove_instance_variable is_singleton: false name: remove_instance_variable params: | obj.remove_instance_variable(symbol) => obj visibility: public