arbitrium 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arbitrium/file_creator.rb +2 -2
- data/lib/arbitrium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfdd0e739cc04ad4a352959eccf4ea013f75c205
|
4
|
+
data.tar.gz: aa3f5f37ba483b2e1a1480ac10463bd3993396d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1491e66225d2597783119ce010fb524de2c0244f26194b80b6ce51586f0dfc82035edbdea18892f0a8c5424267254a5880b40d39a6a6f2e8551761442d69d22
|
7
|
+
data.tar.gz: 8537c6757d1207dd79d3c341f1c3b1ed92f319ddd3586453b9ae2bafe5988f2cb26b15b1692a28583a1b37810b68a0372c568be01a6544717e96c148046a19f1
|
@@ -65,7 +65,7 @@ module Arbitrium
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def class_header
|
68
|
-
module_array.empty? ? "class #{class_name}" : "#{add_spaces(module_array.length)} class #{class_name}"
|
68
|
+
module_array.empty? ? "class #{class_name}" : "\n#{add_spaces(module_array.length)} class #{class_name}"
|
69
69
|
end
|
70
70
|
|
71
71
|
def add_spaces(value = module_array.length)
|
@@ -81,7 +81,7 @@ module Arbitrium
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def file_footer
|
84
|
-
module_array.map.with_index { |_, i|
|
84
|
+
module_array.map.with_index { |_, i| "#{add_spaces((module_array.length - i))}end" }.join("\n")
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
data/lib/arbitrium/version.rb
CHANGED