Skip to content
Browse files


  • Loading branch information
alex committed May 23, 2013
1 parent e4b143f commit 10672a73be9359e4d534e1902b0edaf34d78eda7
Showing with 4 additions and 4 deletions.
  1. +4 −4 topaz/objects/
@@ -401,14 +401,14 @@ def method_append_features(self, space, w_mod):
@classdef.method("define_singleton_method", name="symbol")
def method_define_singleton_method(self, space, name, w_method=None, block=None):
return self.klass.create_and_define_method(space, name, w_method, block)
args_w = [space.newsymbol(name)]
if w_method is not None:
return space.send(self.klass, "define_method", args_w, block)

@classdef.method("define_method", name="symbol")
def method_define_method(self, space, name, w_method=None, block=None):
return self.create_and_define_method(space, name, w_method, block)

def create_and_define_method(self, space, name, w_method=None, block=None):
if w_method is not None:
if space.is_kind_of(w_method, space.w_method):
w_method = space.send(w_method, "unbind")

0 comments on commit 10672a7

Please sign in to comment.
You can’t perform that action at this time.