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



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

def each
  return to_a.each unless block_given?

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

#to_aObject



6
7
8
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 6

def to_a
  @table.to_h.keys
end

#valuesObject



10
11
12
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 10

def values
  @table.to_h.values
end