lib/asciidoctor/syntax_highlighter.rb in asciidoctor-2.0.4 vs lib/asciidoctor/syntax_highlighter.rb in asciidoctor-2.0.5

- old
+ new

@@ -93,17 +93,17 @@ raise ::NotImplementedError, %(#{SyntaxHighlighter} subclass #{self.class} must implement the ##{__method__} method since #write_stylesheet? returns true) end private_class_method def self.included into into.extend Config - end + end || :included module Config # Public: Statically register the current class in the registry for the specified names. # # Returns nothing. - private def register_for *names + def register_for *names SyntaxHighlighter.register self, *names end end module Factory @@ -137,11 +137,13 @@ raise ::NameError, %(#{syntax_hl.class} must specify a value for `name') unless syntax_hl.name syntax_hl end end - private def registry + private + + def registry raise ::NotImplementedError, %(#{Factory} subclass #{self.class} must implement the ##{__method__} method) end end class CustomFactory @@ -149,10 +151,12 @@ def initialize seed_registry = nil @registry = seed_registry || {} end - private def registry + private + + def registry @registry end end module DefaultFactory