diff options
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 |