[#68845] [Ruby trunk - Feature #11056] [PATCH] lib/net/*: use io/wait methods instead of IO.select — normalperson@...
Issue #11056 has been updated by Eric Wong.
3 messages
2015/04/11
[#68945] [Ruby trunk - Feature #11083] [Open] Gemify net-telnet — shibata.hiroshi@...
Issue #11083 has been reported by Hiroshi SHIBATA.
4 messages
2015/04/21
[#68951] Re: [Ruby trunk - Feature #11083] [Open] Gemify net-telnet
— Eric Wong <normalperson@...>
2015/04/21
shibata.hiroshi@gmail.com wrote:
[#69012] [Ruby trunk - Feature #11105] [Open] ES6-like hash literals — shugo@...
Issue #11105 has been reported by Shugo Maeda.
5 messages
2015/04/29
[ruby-core:68963] [Ruby trunk - Feature #11087] [Open] Method to retrieve {local, global, instance} variables as a Hash
From:
godfreykfc@...
Date:
2015-04-22 19:08:18 UTC
List:
ruby-core #68963
Issue #11087 has been reported by Godfrey Chan.
----------------------------------------
Feature #11087: Method to retrieve {local,global,instance} variables as a Hash
https://bugs.ruby-lang.org/issues/11087
* Author: Godfrey Chan
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Rails implemented [Object#instance_values](http://api.rubyonrails.org/classes/Object.html#method-i-instance_values) which returns all the instance variables as a hash.
This is used for [serialization](https://github.com/rails/rails/blob/7c7d9dcf5a966a5490fe99230ab9513d73df9630/activesupport/lib/active_support/core_ext/object/json.rb#L52), but it is pretty useful for introspection, debugging and reporting as well. (For example, it could be used to implement [something like this](https://github.com/rails/web-console/issues/121#issuecomment-89956638).)
I was going to propose an equivalent for local variables (and I suppose global variables too, for completeness), but if there are interest maybe we can do this on Ruby instead.
There are also some open questions:
* Naming
* Hash or iterator? (like Rails' `Object#instance_value` or like `ObjectSpace.each_object`)
* Rails' `Object#instance_values` removes the leading `@`, are we going to do the same? (Probably not?)
--
https://bugs.ruby-lang.org/