Class: JvYAML::Emitter

Inherits:
Object
  • Object
show all
Defined in:
lib/jvyaml.rb

Instance Method Summary collapse

Constructor Details

#initializeEmitter

Returns a new instance of Emitter.



64
65
66
# File 'lib/jvyaml.rb', line 64

def initialize
  @out = ::JvYAML::JvYAMLi::Out.new self
end

Instance Method Details

#emit(oid, &proc) ⇒ Object



73
74
75
# File 'lib/jvyaml.rb', line 73

def emit(oid, &proc)
  proc.call(@out)
end

#has_key?(key) ⇒ Boolean

Returns:

  • (Boolean)


77
78
# File 'lib/jvyaml.rb', line 77

def has_key?(key)
end

#reset(opts) ⇒ Object



68
69
70
71
# File 'lib/jvyaml.rb', line 68

def reset(opts)
  @opts = opts
  self
end