We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a37a47 commit f40a5caCopy full SHA for f40a5ca
1 file changed
lib/octocatalog-diff/cli/options.rb
@@ -28,8 +28,18 @@ def self.has_weight(w) # rubocop:disable Style/PredicateName
28
@weight = w
29
end
30
31
+ def self.order_within_weight(w) # rubocop:disable Style/TrivialAccessors
32
+ @order_within_weight = w
33
+ end
34
+
35
def self.weight
- @weight || DEFAULT_WEIGHT
36
+ if @weight && @order_within_weight
37
+ @weight + (@order_within_weight / 100.0)
38
+ elsif @weight
39
+ @weight
40
+ else
41
+ DEFAULT_WEIGHT
42
43
44
45
def self.name
0 commit comments