Permalink
Browse files

Fake self? Really?

  • Loading branch information...
1 parent 3bf8a84 commit fcf88bfe5d3e96920d54b20da4cb9202d08885bd Tony Arcieri committed Dec 25, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/builtins/module.re
View
@@ -8,8 +8,8 @@
module Module
def class; Module; end
- def call(fake_self, :to_s, args, block)
- (:reia_module, name) = fake_self
+ def call(receiver, :to_s, args, block)
+ (:reia_module, name) = receiver
case erl.code.ensure_loaded(name)
when (:module, name)
name.to_string()
@@ -19,12 +19,12 @@ module Module
end
end
- def call(fake_self, :inspect, args, block)
- fake_self.to_s()
+ def call(receiver, :inspect, args, block)
+ receiver.to_s()
end
- def call(fake_self, method, args, block)
- (:reia_module, name) = fake_self
+ def call(receiver, method, args, block)
+ (:reia_module, name) = receiver
erl.apply(name, method, [args, block])
end
end

0 comments on commit fcf88bf

Please sign in to comment.