summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-class-ext
AgeCommit message (Collapse)Author
2020-04-22Fix `instance_exec` and `class_exec` to avoid crash on indirect calls.Yukihiro "Matz" Matsumoto
Thank you @shuujii to additional report on #4973
2019-11-16Revert "Implement Ruby2.7's frozen strings from `Symbol#to_s`"KOBAYASHI Shuji
This feature was reverted from Ruby 2.7.
2019-10-09Revert part of #4758 to reduce number of tests.Yukihiro "Matz" Matsumoto
More tests, more time.
2019-10-08Implement Ruby2.7's frozen strings from `Module#name`KOBAYASHI Shuji
2019-09-26Use type predicate macros instead of `mrb_type` if possibleKOBAYASHI Shuji
For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`).
2019-09-16Entrust "no block given" error to `mrb_get_args()`dearblue
Some error messages will be changed.
2019-06-17Remove unneeded `mrb_str_dup()` in `Module#name`KOBAYASHI Shuji
`mrb_class_path()` always returns a new string or `nil`.
2018-12-04Add new methods `Module#{>,>=,<=>}`; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Remove unnecessary check in `Module#<`; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Replace RDoc `<i></i>` to Markdown back quotes; ref #4174Yukihiro "Matz" Matsumoto
2018-12-02Adds Module#< and Module#<=Rob
2018-08-30Separate meta-programming features to `mruby-metaprog` gem.Yukihiro "Matz" Matsumoto
We assume meta-programming is less used in embedded environments. We have moved following methods: * Kernel module global_variables, local_variables, singleton_class, instance_variables, instance_variables_defined?, instance_variable_get, instance_variable_set, methods, private_methods, public_methods, protected_methods, singleton_methods, define_singleton_methods * Module class class_variables, class_variables_defined?, class_variable_get, class_variable_set, remove_class_variable, included_modules, instance_methods, remove_method, method_removed, constants * Module class methods constants, nesting Note: Following meta-programming methods are kept in the core: * Module class alias_method, undef_method, ancestors, const_defined?, const_get, const_set, remove_const, method_defined?, define_method * Toplevel object define_method `mruby-metaprog` gem is linked by default (specified in default.gembox). When it is removed, it will save 40KB (stripped:8KB) on x86-64 environment last time I measured.
2017-12-23Add `#module_exec` and `#class_exec` in `mruby-class-ext` gem.Yukihiro "Matz" Matsumoto
2017-07-19Merge pull request #3746 from christopheraue/mod_singleton_class_pYukihiro "Matz" Matsumoto
Implemented Module#singleton_class?
2017-07-18Fixed Module#to_s and #name for #const_set modulesChristopher Aue
2017-07-18implemented Module#singleton_class?Christopher Aue
2016-11-13rename mruby-module-ext to mruby-class-ext; ref #2470Yukihiro "Matz" Matsumoto