Lua OOP オブジェクト指向(風味)

Pen = {
  name = "This is a Pen!"
}

function Pen:talk()
  print(self.name)
end

Pen:talk()
This is a Pen!