class MarkdownExec::LinkState

def self.empty

Returns:
  • (LinkState) - an instance with all attributes set to their default values.
def self.empty
  new
end

def ==(other)

Returns:
  • (Boolean) - true if the objects are equal, false otherwise.

Parameters:
  • other (LinkState) -- the other LinkState object to compare with.
def ==(other)
  other.class == self.class &&
    other.block_name == block_name &&
    other.display_menu == display_menu &&
    other.document_filename == document_filename &&
    other.inherited_block_names == inherited_block_names &&
    other.inherited_dependencies == inherited_dependencies &&
    other.inherited_lines == inherited_lines &&
    other.prior_block_was_link == prior_block_was_link
end

def initialize(block_name: nil, display_menu: nil, document_filename: nil,

Parameters:
  • inherited_lines (Array, nil) -- the inherited lines of code.
  • inherited_dependencies (?, nil) -- the dependecy hierarcy.
  • inherited_block_names (Array, nil) -- the names of the inherited blocks.
  • document_filename (String, nil) -- the filename of the document.
  • block_name (String, nil) -- the name of the block.
def initialize(block_name: nil, display_menu: nil, document_filename: nil,
               inherited_block_names: [], inherited_dependencies: nil, inherited_lines: nil,
               prior_block_was_link: nil)
  @block_name = block_name
  @display_menu = display_menu
  @document_filename = document_filename
  @inherited_block_names = inherited_block_names
  @inherited_dependencies = inherited_dependencies
  @inherited_lines = inherited_lines
  @prior_block_was_link = prior_block_was_link
end