Skip to content
Permalink
Browse files
rename mruby-module-ext to mruby-class-ext; ref #2470
  • Loading branch information
matz committed Nov 13, 2016
1 parent 451985d commit 01dddaf38525b631c61886758628afe8f04b6356
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
@@ -71,8 +71,8 @@ MRuby::GemBox.new do |conf|
# Use Kernel module extension
conf.gem :core => "mruby-kernel-ext"

# Use extensional Module class
conf.gem :core => "mruby-module-ext"
# Use class/module extension
conf.gem :core => "mruby-class-ext"

# Use mruby-compiler to build other mrbgems
conf.gem :core => "mruby-compiler"
@@ -0,0 +1,5 @@
MRuby::Gem::Specification.new('mruby-class-ext') do |spec|
spec.license = 'MIT'
spec.author = 'mruby developers'
spec.summary = 'class/module extension'
end
@@ -10,14 +10,14 @@ mrb_mod_name(mrb_state *mrb, mrb_value self)
}

void
mrb_mruby_module_ext_gem_init(mrb_state *mrb)
mrb_mruby_class_ext_gem_init(mrb_state *mrb)
{
struct RClass *mod = mrb->module_class;

mrb_define_method(mrb, mod, "name", mrb_mod_name, MRB_ARGS_NONE());
}

void
mrb_mruby_module_ext_gem_final(mrb_state *mrb)
mrb_mruby_class_ext_gem_final(mrb_state *mrb)
{
}
File renamed without changes.

This file was deleted.

0 comments on commit 01dddaf

Please sign in to comment.