Class: Asciidoctor::Standoc::YamlBlockStruct
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Asciidoctor::Standoc::YamlBlockStruct
- Defined in:
- lib/asciidoctor/standoc/macros_yaml2text.rb
Instance Method Summary collapse
Instance Method Details
#each ⇒ Object
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_a ⇒ Object
8 9 10 |
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 8 def to_a @table.to_h.keys end |
#values ⇒ Object
12 13 14 |
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 12 def values @table.to_h.values end |