Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/microstation/ts/instance.rb
Instance Method Summary collapse
Instance Method Details
#transform ⇒ Object
2 3 4 5 6 7 |
# File 'lib/microstation/ts/instance.rb', line 2 def transform each_with_object({}) do |(k, v), result| new_k, new_v = yield k, v result[new_k] = new_v end end |