Class: NilClass

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

Overview

Behavior for built-in classes

Instance Method Summary collapse

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/vendor/puppet/util/monkey_patches.rb', line 48

def closed?
  true
end

#to_zaml(z) ⇒ Object



211
212
213
# File 'lib/vendor/puppet/util/zaml.rb', line 211

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