rgviz 0.12 → 0.13
Sign up to get free protection for your applications and to get access to all the features.
- 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
|