|
Revision 814
(checked in by rsz, 3 years ago)
|
cleanup
|
| Line | |
|---|
| 1 |
-------------------------------------------------------------------------------- |
|---|
| 2 |
-- Title: MyOtherClass.lua |
|---|
| 3 |
-- Description: Like a square peg in a round hole |
|---|
| 4 |
-- Author: Raphaël Szwarc http://alt.textdrive.com/lua/ |
|---|
| 5 |
-- Creation Date: February 1, 2005 |
|---|
| 6 |
-- Legal: Copyright (C) 2005 Raphaël Szwarc |
|---|
| 7 |
-------------------------------------------------------------------------------- |
|---|
| 8 |
|
|---|
| 9 |
-- import dependencies |
|---|
| 10 |
local MyClass = require( "MyClass" ) |
|---|
| 11 |
local LULog = require( "LULog" ) |
|---|
| 12 |
|
|---|
| 13 |
-- define the class |
|---|
| 14 |
local super = MyClass |
|---|
| 15 |
local self = super() |
|---|
| 16 |
|
|---|
| 17 |
-- method |
|---|
| 18 |
function self:dwim() |
|---|
| 19 |
LULog:debug( "----" ) |
|---|
| 20 |
LULog:debug( self ) |
|---|
| 21 |
|
|---|
| 22 |
super.dwim( self ) |
|---|
| 23 |
end |
|---|
| 24 |
|
|---|
| 25 |
return self |
|---|