diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-05-08 14:23:26 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-05-08 14:23:26 +0100 |
commit | 9a947b32a74e5f2866f12d9552e1265c3e3650a6 (patch) | |
tree | 4795d3923d9908e489e1355bd37ecdaf8bdb8602 /frame.rb | |
parent | e796ea2d6d3aabe84ff165d8be110506482f895d (diff) |
Demo ends. For now...
Diffstat (limited to 'frame.rb')
-rw-r--r-- | frame.rb | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |