summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErik Dalén <dalen@spotify.com>2014-11-12 15:52:33 +0100
committerErik Dalén <dalen@spotify.com>2014-11-12 15:52:33 +0100
commite61f402283774883d7b7c7d0f04dec7c457c968c (patch)
treea22fac8f4dc19194ec3e6aa4f1fb65ee0d3b766a /lib
parent85d7eddc41b04c9a9a7bf1a171dd8d3ab157a88a (diff)
(maint) Fix indentation of range function
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/range.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/puppet/parser/functions/range.rb b/lib/puppet/parser/functions/range.rb
index ffbdf84..06d75d4 100644
--- a/lib/puppet/parser/functions/range.rb
+++ b/lib/puppet/parser/functions/range.rb
@@ -65,21 +65,21 @@ Will return: [0,2,4,6,8]
end
end
- # Check whether we have integer value if so then make it so ...
- if start.match(/^\d+$/)
- start = start.to_i
- stop = stop.to_i
- else
- start = start.to_s
- stop = stop.to_s
- end
+ # Check whether we have integer value if so then make it so ...
+ if start.match(/^\d+$/)
+ start = start.to_i
+ stop = stop.to_i
+ else
+ start = start.to_s
+ stop = stop.to_s
+ end
- range = case type
- when /^(\.\.|\-)$/ then (start .. stop)
- when /^(\.\.\.)$/ then (start ... stop) # Exclusive of last element ...
- end
+ range = case type
+ when /^(\.\.|\-)$/ then (start .. stop)
+ when /^(\.\.\.)$/ then (start ... stop) # Exclusive of last element ...
+ end
- result = range.step(step).collect { |i| i } # Get them all ... Pokemon ...
+ result = range.step(step).collect { |i| i } # Get them all ... Pokemon ...
return result
end