lib/asciidoctor/abstract_block.rb in asciidoctor-2.0.3 vs lib/asciidoctor/abstract_block.rb in asciidoctor-2.0.4
- old
+ new
@@ -72,11 +72,11 @@
def convert
@document.playback_attributes @attributes
converter.convert self
end
- # Alias render to convert to maintain backwards compatibility
+ # Deprecated: Use {AbstractBlock#convert} instead.
alias render convert
# Public: Get the converted result of the child blocks by converting the
# children appropriate to content model that this block supports.
def content
@@ -430,11 +430,13 @@
block.reindex_sections
end
end
end
+ protected
+
# Internal: Performs the work for find_by, but does not handle the StopIteration exception.
- protected def find_by_internal selector = {}, result = [], &block
+ def find_by_internal selector = {}, result = [], &block
if ((any_context = (context_selector = selector[:context]) ? nil : true) || context_selector == @context) &&
(!(style_selector = selector[:style]) || style_selector == @style) &&
(!(role_selector = selector[:role]) || (has_role? role_selector)) &&
(!(id_selector = selector[:id]) || id_selector == @id)
if block_given?