lib/link_history.rb in markdown_exec-1.8.4 vs lib/link_history.rb in markdown_exec-1.8.5

- old
+ new

@@ -3,22 +3,24 @@ # encoding=utf-8 module MarkdownExec class LinkState attr_accessor :block_name, :document_filename, - :inherited_block_names, :inherited_lines + :inherited_block_names, :inherited_dependencies, :inherited_lines # Initialize the LinkState with keyword arguments for each attribute. # @param block_name [String, nil] the name of the block. # @param document_filename [String, nil] the filename of the document. # @param inherited_block_names [Array<String>, nil] the names of the inherited blocks. + # @param inherited_dependencies [?, nil] the dependecy hierarcy. # @param inherited_lines [Array<String>, nil] the inherited lines of code. def initialize(block_name: nil, document_filename: nil, - inherited_block_names: [], inherited_lines: nil) + inherited_block_names: [], inherited_dependencies: nil, inherited_lines: nil) @block_name = block_name @document_filename = document_filename @inherited_block_names = inherited_block_names + @inherited_dependencies = inherited_dependencies @inherited_lines = inherited_lines end # Creates an empty LinkState instance. # @return [LinkState] an instance with all attributes set to their default values. @@ -32,9 +34,10 @@ def ==(other) other.class == self.class && other.block_name == block_name && other.document_filename == document_filename && other.inherited_block_names == inherited_block_names && + other.inherited_dependencies == inherited_dependencies && other.inherited_lines == inherited_lines end end class LinkHistory