linked_list_sourav 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/linked_list_sourav.rb +7 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 944b3e6d6770d3920504de92e18fac904dc3a513
4
- data.tar.gz: e2e9c678dad2dfcaa1394bce0544f9833165ad62
3
+ metadata.gz: 40e267bfca7eeb6aab2b6b39ef283dd11c35c6ab
4
+ data.tar.gz: 31e48251e30853e24c7dc3cc498fe92a9cd32f15
5
5
  SHA512:
6
- metadata.gz: 8cbbae68c57502fdf199c33d51c30965f1696c8e0f0dcc4236d27de6f96d7d56709d80cda4701c918422e18fda261b0fd28d572367785368bc7ace9d6f9f3916
7
- data.tar.gz: f788c256447692fc00c7e6f6c1ceda94693b50d503fbf24cbf9686667a4ad283eea866036f09ebbe195375cd8e7f29b5084472bc365bcea9c0b0cd6a4b9e22bf
6
+ metadata.gz: 70c632fc3bc7e6b80435937c55e291ca4ca8fdc652fc7029aab6d02f9ad8f4762b4298946c52d1d6424b53ff75436e69c93dba8d04e7328f078e386f2addea3e
7
+ data.tar.gz: 29f4eb801595c0b8521e7719db2d7fa1cee2548c03580033dc6a0f6eb303ef09fc21c03a788fbaf636109e3c4bd27fc25e5a5127241eba2467dba61ad5e5abe4
@@ -10,9 +10,9 @@ class LinkedList
10
10
  end
11
11
 
12
12
  def to_s
13
- print "Data: #{self.data} "
14
- print "Points to: #{self.forward.data}" if self.forward
15
- print "\n"
13
+ string = "Data: #{self.data} "
14
+ string << "Points to: #{self.forward.data}" if self.forward
15
+ string
16
16
  end
17
17
  end
18
18
 
@@ -26,10 +26,10 @@ class LinkedList
26
26
  end
27
27
 
28
28
  def to_s
29
- print "Data: #{self.data} "
30
- print "Points to: #{self.forward.data}" if self.forward
31
- print "Points to: #{self.backward.data}" if self.backward
32
- print "\n"
29
+ string = "Data: #{self.data} "
30
+ string << "Points to: #{self.forward.data}" if self.forward
31
+ string << " Pointed by: #{self.backward.data}" if self.backward
32
+ string
33
33
  end
34
34
  end
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linked_list_sourav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sourav Moitra