ruby
> [1,2].instance_eval{|a,b| {:a => a, :b => b}}
=> {:a => 1, :b => 2}
こういうことをもっとシンプルに書く方法だれか教えてください。
Go to list of users who liked
More than 1 year has passed since last update.
> [1,2].instance_eval{|a,b| {:a => a, :b => b}}
=> {:a => 1, :b => 2}
こういうことをもっとシンプルに書く方法だれか教えてください。
Register as a new user and use Qiita more conveniently
Go to list of users who liked