Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-10-18から1日間の記事一覧

Ruby | Object | remove_instance_variable

概要 Object#remove_instance_variable(name) -> object 詳細 オブジェクトからインスタンス変数 name を削除。 そのインスタンス変数に設定されていた値を返却。 サンプルコード require 'tbpgr_utils' class Person attr_reader :name, :age def initializ…