rgviz 0.12 → 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.
- data/lib/rgviz/nodes.rb +2 -8
- metadata +3 -3
data/lib/rgviz/nodes.rb
CHANGED
|
@@ -393,14 +393,8 @@ module Rgviz
|
|
|
393
393
|
|
|
394
394
|
def to_s
|
|
395
395
|
case function
|
|
396
|
-
when Sum
|
|
397
|
-
"#{arguments[0].to_s}
|
|
398
|
-
when Difference
|
|
399
|
-
"#{arguments[0].to_s} + #{arguments[1].to_s}"
|
|
400
|
-
when Product
|
|
401
|
-
"#{arguments[0].to_s} * #{arguments[1].to_s}"
|
|
402
|
-
when Quotient
|
|
403
|
-
"#{arguments[0].to_s} / #{arguments[1].to_s}"
|
|
396
|
+
when Sum, Difference, Product, Quotient
|
|
397
|
+
"#{arguments[0].to_s} #{function} #{arguments[1].to_s}"
|
|
404
398
|
else
|
|
405
399
|
"#{function}(#{arguments.map(&:to_s).join(', ')})"
|
|
406
400
|
end
|
metadata
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rgviz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: "0.
|
|
8
|
+
- 13
|
|
9
|
+
version: "0.13"
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Ary Borenszweig
|