Skip to content

Commit

Permalink
Unused and unasked for to_s removed
Browse files Browse the repository at this point in the history
fixes #250
  • Loading branch information
kotp committed Feb 5, 2016
1 parent 64307ab commit 49ff008
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions exercises/simple-linked-list/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ def initialize(datum, next_element = NullElement.new)
@next = next_element
end

def to_s
"<#{self.class.name} @datum=#{@datum} @next=#{@next || 'nil'}>"
end

def to_a
self.class.to_a(self)
end
Expand Down

0 comments on commit 49ff008

Please sign in to comment.