summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-hash-ext/mrblib/hash.rb
AgeCommit message (Collapse)Author
2018-09-20Merge branch 'no-implicit-conversion' into mruby2-draftmruby2-draftYukihiro "Matz" Matsumoto
2018-09-20Small refactoring in `mruby-hash-ext`.Yukihiro "Matz" Matsumoto
2018-09-19Removed `to_hash` conversion method.Yukihiro "Matz" Matsumoto
2018-09-19Removed `try_convert` method from Array and Hash.Yukihiro "Matz" Matsumoto
2018-08-06Reimplement `Hash#compact!` to conform the standard behavior.Yukihiro "Matz" Matsumoto
`Hash#compact!` should return `nil` if the receiver does not change.
2017-12-25`KeyError` from `Hash#fetch` should inspect key.Yukihiro "Matz" Matsumoto
To distinguish string keys and symbol keys.
2017-10-18Add `Hash#to_proc`; CRuby2.3Yukihiro "Matz" Matsumoto
2017-10-18Add `Hash#fetch_values`; CRuby2.3Yukihiro "Matz" Matsumoto
2017-08-09Implement `Hash#compact!` in C; ref #3769Yukihiro "Matz" Matsumoto
2017-08-09add method(compact, compact!) and test of Hash to mruby-hash-extvvakame
2017-07-30Improved speed of enumeration methodsChristopher Aue
2017-07-15Add `Hash#transform_keys!` and `Hash#transform_values`.Yukihiro "Matz" Matsumoto
2017-07-15Use `keys.each` instead of unstable `each_keys`.Yukihiro "Matz" Matsumoto
2017-07-14Add `Hash#transform_{keys,values}` to `mruby-hash-ext`.Yukihiro "Matz" Matsumoto
2017-03-21Hash sub class creates new sub class objects instead of HashKouhei Sutou
2016-03-23add #dig to Array,Hash and StructYukihiro "Matz" Matsumoto
2015-11-24add {Array|Hash|String}.try_converttakahashim
2015-11-15move Hash comparison methods to mruby-hash-ext gemYukihiro "Matz" Matsumoto
2015-10-21Revert "Mark core gems with mrbgem tag"Seba Gamboa
This reverts commit 5cdcce8dbddd94ecb9503a0a1d47370c4ef97177.
2015-10-20Remove obvious warnings from docsSeba Gamboa
2015-10-20Mark core gems with mrbgem tagSeba Gamboa
2015-09-17Problem: Hash#fetch doesn't raise KeyError when a key cannot be foundAsmod4n
Solution: change the Exception class raised to KeyError when a key cannot be found.
2015-09-16fix block variable in Hash#fetchtakahashim
2015-06-24Remove unnecessary backticks.Franck Verrot
Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2014-09-19to_hash/to_a check in Hash[] should only be done when only one argument is ↵Yukihiro "Matz" Matsumoto
given; ref #2594
2014-09-18copy documentation comment from CRubyINOUE Yasuyuki
2014-09-18remove line number from raise messageINOUE Yasuyuki
2014-09-18refactor Hash generator loopINOUE Yasuyuki
2014-09-06implement Hash.[]INOUE Yasuyuki
2014-06-04add Hash#to_h; ref #2348Yukihiro "Matz" Matsumoto
2014-05-10Add comment to Hash#each_pair. And change the lineyui-knk
Add comment about ISO. Current place is misleading so change line No.
2014-05-10Change to raise TypeError (Hash#merge, #merge!)yui-knk
2014-05-09Add Hash#keyJun Hiroe
2014-05-05Add Hash#keep_ifJun Hiroe
2014-05-05Add Hash#invertJun Hiroe
2014-05-04Add Hash#flattenJun Hiroe
2014-05-04Add Hash commentsJun Hiroe
2014-05-04Add Hash#delete_ifJun Hiroe
2014-04-27add Hash#fetch; close #2134Yukihiro "Matz" Matsumoto
2014-03-21reduce hash creation by using update methodYukihiro "Matz" Matsumoto
2014-03-21add Hash#each_pairYukihiro "Matz" Matsumoto
2013-05-03add type check in Hash#merge!Gilad Zohari
2013-03-22add mruby-hash-ext mrbgem, and method: Hash#merge!Kouki Ooyatsu