summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-08 13:44:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-08 13:44:31 +0900
commit4a2c37df935495fd612377d67bdba0582ad1813e (patch)
tree6af67d2f201945ac528ec479cd234017914b977b /mrbgems/mruby-time
parent5da7bd3a9133f03eb259fd9858cb08fa56bc53ac (diff)
downloadmruby-4a2c37df935495fd612377d67bdba0582ad1813e.tar.gz
mruby-4a2c37df935495fd612377d67bdba0582ad1813e.zip
made mrb_define_class to return existing class, with heavy refactoring
Diffstat (limited to 'mrbgems/mruby-time')
-rw-r--r--mrbgems/mruby-time/src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index 2ec352925..8bea2cb5b 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -662,7 +662,7 @@ mrb_mruby_time_gem_init(mrb_state* mrb)
/* ISO 15.2.19.2 */
tc = mrb_define_class(mrb, "Time", mrb->object_class);
MRB_SET_INSTANCE_TT(tc, MRB_TT_DATA);
- mrb_include_module(mrb, tc, mrb_class_get(mrb, "Comparable"));
+ mrb_include_module(mrb, tc, mrb_module_get(mrb, "Comparable"));
mrb_define_class_method(mrb, tc, "at", mrb_time_at, MRB_ARGS_ANY()); /* 15.2.19.6.1 */
mrb_define_class_method(mrb, tc, "gm", mrb_time_gm, MRB_ARGS_ARG(1,6)); /* 15.2.19.6.2 */
mrb_define_class_method(mrb, tc, "local", mrb_time_local, MRB_ARGS_ARG(1,6)); /* 15.2.19.6.3 */