summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/reference.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/reference.rb')
-rw-r--r--lib/puppet/util/reference.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/util/reference.rb b/lib/puppet/util/reference.rb
index 314f9c136..24da1e5d7 100644
--- a/lib/puppet/util/reference.rb
+++ b/lib/puppet/util/reference.rb
@@ -116,7 +116,7 @@ class Puppet::Util::Reference
end
def h(name, level)
- return "#{name}\n#{HEADER_LEVELS[level] * name.to_s.length}\n\n"
+ "#{name}\n#{HEADER_LEVELS[level] * name.to_s.length}\n\n"
end
def initialize(name, options = {}, &block)
@@ -136,7 +136,7 @@ class Puppet::Util::Reference
# Indent every line in the chunk except those which begin with '..'.
def indent(text, tab)
- return text.gsub(/(^|\A)/, tab).gsub(/^ +\.\./, "..")
+ text.gsub(/(^|\A)/, tab).gsub(/^ +\.\./, "..")
end
def option(name, value)
@@ -152,7 +152,7 @@ class Puppet::Util::Reference
#str += text.gsub(/\n/, "\n ")
str += "\n\n"
- return str
+ str
end
# Remove all trac links.
@@ -176,7 +176,7 @@ class Puppet::Util::Reference
text += self.class.footer if withcontents
- return text
+ text
end
def to_text(withcontents = true)