Class: NilClass

Inherits:
Object show all
Defined in:
lib/puppet/util/zaml.rb,
lib/puppet/util/monkey_patches.rb

Overview

Behavior for built-in classes

Instance Method Summary collapse

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/puppet/util/monkey_patches.rb', line 54

def closed?
  true
end

#to_zaml(z) ⇒ Object



223
224
225
# File 'lib/puppet/util/zaml.rb', line 223

def to_zaml(z)
  z.emit('')        # NOTE: blank turns into nil in YAML.load
end