Skip to content

Commit dce8063

Browse files
authored
Merge pull request #2 from henjifeng/fix_chapter07_supper_error
fix chapter07 super error
2 parents c80866b + 0eb3a1c commit dce8063

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chapter07.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ <h3 id="-">使用即时创建匿名类的做法</h3>
470470
if mem.has_key?(args)
471471
mem[args]
472472
else
473-
mem[args] = super
473+
mem[args] = super(*args)
474474
end
475475
end
476476
end

src/chapter07.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def mem_result(obj, method)
278278
if mem.has_key?(args)
279279
mem[args]
280280
else
281-
mem[args] = super
281+
mem[args] = super(*args)
282282
end
283283
end
284284
end

0 commit comments

Comments
 (0)