Commit Graph

24 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 3a9caad8eb Move Symbol#to_proc to the core from mruby-symbol-ext gem.
Even though `Symbol#to_proc` is not included in ISO standard, the
`some_method(&:method_name)` is used very widely and convenient.
So we moved it to the core.
2018-09-20 13:47:29 +09:00
Yukihiro "Matz" Matsumoto 4122c320bb Add {String,Symbol}#casecmp?; CRuby2.4 2017-10-17 13:26:37 +09:00
Yukihiro "Matz" Matsumoto 5c405dea3d include changed from by quotes ("") to by brackets (<>); close #3032 2015-11-27 17:48:23 +09:00
Jun Hiroe 4e4929bc72 Rename extended xxxx class or module to xxxx class or module extension 2015-06-28 11:18:52 +09:00
Jun Hiroe c69d1201e1 Fix typo; Replace extensional with extended 2015-06-28 00:05:58 +09:00
Yukihiro "Matz" Matsumoto 4a55b42984 O(1) mrb_sym2name_len(); close #2591
instead of adding sym->name hash table, linear symbol table is added, and reduced name->sym hash table size.
2014-09-30 20:15:27 +09:00
take_cheeze 257725cecb Add Symbol#intern. 2014-06-24 21:44:22 +09:00
take_cheeze 1633469e9c Reduce string creation in Symbol#casecmp by using case!. 2014-06-23 19:51:27 +09:00
take_cheeze 7015493efb Reduce string creation of length, size, empty? method of Symbol extension. 2014-06-23 19:51:27 +09:00
take_cheeze 0a6b54acd6 Reduce new string creation in capitalize, downcase, upcase method of Symbol class extension.
Add test to check unmodified result is working.
2014-06-23 19:51:27 +09:00
ksss d6b4cdb6ac use Kernel#__send__ insteard of Kernel#send 2014-04-30 22:25:21 +09:00
take_cheeze 0d2c307ef6 Suppress test script syntax warning. 2014-04-20 22:11:08 +09:00
Yukihiro "Matz" Matsumoto a694110193 Merge pull request #2089 from ksss/sym-casecmp
Implement Symbol#casecmp
2014-04-20 21:30:46 +09:00
ksss bb52324bd9 Implement Symbol#casecmp 2014-04-20 13:43:59 +09:00
ksss 900999b290 Symbol class include Comparable module. 2014-04-20 09:48:33 +09:00
Yukihiro "Matz" Matsumoto 1d51d1a0b5 Symbol#to_proc to support block call.
based on a patch from @ksss; close #2071
2014-04-17 13:28:54 +09:00
Yukihiro "Matz" Matsumoto dbe85f81dd raises an ArgumentError when calling #call
based on a patch from @ksss; close #2070
2014-04-17 09:37:40 +09:00
ksss 8d15ef2e89 Use bool macro KHASH_DEFINE and KHASH_DECLARE 2014-04-02 13:38:43 +00:00
take_cheeze c73f8d4def move summary of mrbgems in default gembox to its spec 2014-03-17 00:34:24 +09:00
skandhas 81c0fda8ec add some methods to Symbol 2013-10-08 21:47:11 +08:00
Daniel Bovensiepen a28c7c081a Improve test of mruby-symbol-ext GEM 2013-08-04 22:42:27 +08:00
Tomoyuki Sahara 116f75a8ce "spec.author" is better for single-author gems.
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.

http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
h2so5 2fa8bf4683 Add Symbol#to_proc, Symbol.all_symbols 2013-04-21 18:01:09 +09:00