summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/has_key.rb
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-08-17 15:20:26 -0700
committernfagerlund <nick.fagerlund@gmail.com>2011-08-18 12:39:04 -0700
commit400b91ab02428c6a51886f31cbb12b9d4852b6e9 (patch)
treef901de1bfddf514abeb6c31a43f91db3111804b9 /lib/puppet/parser/functions/has_key.rb
parentfa2fde6635042cca38ec6f42b93faafda54d41cd (diff)
Docs: Correct indentation of markdown code examples
Code examples in several function doc strings were only indented by two spaces, which would not result in proper display when rendered as HTML. This commit corrects the indentation to four spaces.
Diffstat (limited to 'lib/puppet/parser/functions/has_key.rb')
-rw-r--r--lib/puppet/parser/functions/has_key.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/puppet/parser/functions/has_key.rb b/lib/puppet/parser/functions/has_key.rb
index 9c1c4c3..4657cc2 100644
--- a/lib/puppet/parser/functions/has_key.rb
+++ b/lib/puppet/parser/functions/has_key.rb
@@ -1,16 +1,17 @@
module Puppet::Parser::Functions
newfunction(:has_key, :type => :rvalue, :doc => <<-'ENDHEREDOC') do |args|
- determine if a hash has a certain key value.
+ Determine if a hash has a certain key value.
Example:
- $my_hash = {'key_one' => 'value_one'}
- if has_key($my_hash, 'key_two') {
- notice('we will not reach here')
- }
- if has_key($my_hash, 'key_one') {
- notice('this will be printed')
- }
+
+ $my_hash = {'key_one' => 'value_one'}
+ if has_key($my_hash, 'key_two') {
+ notice('we will not reach here')
+ }
+ if has_key($my_hash, 'key_one') {
+ notice('this will be printed')
+ }
ENDHEREDOC