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
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_a ⇒ Object
6 7 8 |
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 6 def to_a @table.to_h.keys end |
#values ⇒ Object
10 11 12 |
# File 'lib/asciidoctor/standoc/macros_yaml2text.rb', line 10 def values @table.to_h.values end |