aboutsummaryrefslogtreecommitdiff
path: root/frame.rb
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2024-05-08 14:23:26 +0100
committerNat Lasseter <user@4574.co.uk>2024-05-08 14:23:26 +0100
commit9a947b32a74e5f2866f12d9552e1265c3e3650a6 (patch)
tree4795d3923d9908e489e1355bd37ecdaf8bdb8602 /frame.rb
parente796ea2d6d3aabe84ff165d8be110506482f895d (diff)
Demo ends. For now...
Diffstat (limited to 'frame.rb')
-rw-r--r--frame.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/frame.rb b/frame.rb
index a61c547..1fda655 100644
--- a/frame.rb
+++ b/frame.rb
@@ -1,10 +1,14 @@
class Frame
- def initialize(iface, desc)
+ def initialize(iface, id)
@iface = iface
- @description = desc
+ @id = id
end
- attr_accessor :iface, :description
+ attr_accessor :iface
+
+ def description
+ "Frame #{@id}"
+ end
def to(iface)
t = dup
@@ -13,7 +17,6 @@ class Frame
end
def ==(oth)
- @description == oth.description &&
- @iface == oth.iface
+ @iface == oth.iface && @id == oth.id
end
end