관리-도구
편집 파일: instance_variable_defined%3f-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns <tt>true</tt> if the given instance variable is defined in <em>obj</em>. - !ruby/struct:SM::Flow::VERB body: " class Fred\n def initialize(p1, p2)\n @a, @b = p1, p2\n end\n end\n fred = Fred.new('cat', 99)\n fred.instance_variable_defined?(:@a) #=> true\n fred.instance_variable_defined?("@b") #=> true\n fred.instance_variable_defined?("@c") #=> false\n" full_name: Object#instance_variable_defined? is_singleton: false name: instance_variable_defined? params: | obj.instance_variable_defined?(symbol) => true or false visibility: public