Class: Asciidoctor::Standoc::YamlBlockStruct

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/asciidoctor/standoc/macros_yaml2text.rb

Instance Method Summary collapse

Instance Method Details

#eachObject



16
17
18
19
20
21
22
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 16

def each
  return to_a.each unless block_given?

  to_a.each do |key|
    yield(key)
  end
end

#to_aObject



8
9
10
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 8

def to_a
  @table.to_h.keys
end

#valuesObject



12
13
14
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 12

def values
  @table.to_h.values
end