Skip to content

Commit

Permalink
Add convenience class:Inherit method
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Nov 13, 2010
1 parent 6b2f1f4 commit 1e25c2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function Class(constructor)
c.__index = c
c.__tostring = function() return string.format("<instance of %s>", name) end
c.construct = constructor or __NULL__
c.Construct = constructor or __NULL__
c.inherit = Inherit
c.Inherit = Inherit

local meta = {
__call = function(self, ...)
Expand Down

0 comments on commit 1e25c2a

Please sign in to comment.