diff options
| author | rebecca <ubq323@ubq323.website> | 2026-09-24 16:42:28 +0100 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-09-24 18:20:25 +0100 |
| commit | 3f54007ab621d2e6b652523259b1cb2d3d158e22 (patch) | |
| tree | 101d01f242a14119a31f838be6a97a7d36847f5c /channel.lua | |
| parent | c6bf8876a0949214ce3fc151b2dbb957e40523a3 (diff) | |
create Thing class for general tuples of (pylon,descriptor)
Diffstat (limited to 'channel.lua')
| -rw-r--r-- | channel.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/channel.lua b/channel.lua deleted file mode 100644 index f921e36..0000000 --- a/channel.lua +++ /dev/null @@ -1,14 +0,0 @@ -local class = require'r.class' --- channel descriptor - -local Channel = class() -function Channel.make(cls, pylon, descriptor) - return setmetatable({pylon=pylon, descriptor=descriptor}, cls) -end -function Channel.__eq(self, other) - return self.pylon == other.pylon and self.descriptor == other.descriptor -end -function Channel.__tostring(self) - return self.pylon.name .. ':' .. self.descriptor -end -return Channel |
