class MarkdownExec::MDoc
def get_block_by_anyname(name, default = {})
- 
        (Hash)- The code block as a hash or the default value if not found.
Parameters:
- 
        default(Hash) -- The default value to return if the code block is not found.
- 
        name(String) -- The name of the code block to retrieve.
def get_block_by_anyname(name, default = {}) @table.select do |fcb| fcb.fetch(:nickname, '') == name || fcb.fetch(:dname, '') == name || fcb.fetch(:oname, '') == name end.fetch(0, default) end