yield_source 0.0.10 → 0.0.11
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.
- checksums.yaml +4 -4
- data/lib/yield_source.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 198d7ad720a2d157e2147d51e4efa642b33d3817e3e1ad52b1110e58b661007a
|
4
|
+
data.tar.gz: 38748239326166a9453912d65fd28bec24f36b5faf0a3868f185c826c16555f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b2a93bdbc526534f1a1da9c121782ac5d69ef70a227435399b718de918c560cf4bc31613ac53f633f6f946e815e5520380cc98abd1046e4396a20430f466c1
|
7
|
+
data.tar.gz: 62313b5c4ffb71712ca0cbf730c785e11565d5c04360557a80953129af5ea68470e33da13bc5e4be539aa41860d6bfd74009484f9e9a9aef0412673905293c24
|
data/lib/yield_source.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
class Object
|
2
2
|
|
3
3
|
def what_the()
|
4
|
-
yield("Found me..")
|
5
4
|
puts("How did this work?!")
|
6
5
|
puts("Where is this coming from?")
|
6
|
+
yield("Found me..")
|
7
7
|
end
|
8
8
|
|
9
9
|
end
|
@@ -11,14 +11,14 @@ end
|
|
11
11
|
class YieldSource
|
12
12
|
|
13
13
|
def what_is_it?()
|
14
|
-
yield("
|
15
|
-
puts("Here it is..!")
|
14
|
+
yield("Move on to the next problem")
|
16
15
|
end
|
17
16
|
|
18
17
|
def yielder(num1, num2)
|
18
|
+
puts("Before the yield..")
|
19
19
|
result = num1 ** num2
|
20
20
|
yield(result)
|
21
|
-
puts("
|
21
|
+
puts("..after the yield.")
|
22
22
|
end
|
23
23
|
|
24
24
|
def how_many(str)
|