Module: MarkdownExec

Includes:
Exceptions
Defined in:
lib/markdown_exec.rb,
lib/fcb.rb,
lib/mdoc.rb,
lib/mdoc.rb,
lib/filter.rb,
lib/filter.rb,
lib/link_history.rb,
lib/link_history.rb,
lib/option_value.rb,
lib/saved_assets.rb,
lib/markdown_exec.rb,
lib/hash_delegator.rb,
lib/hash_delegator.rb,
lib/saved_files_matcher.rb,
lib/markdown_exec/version.rb

Overview

:reek:TooManyConstants

Defined Under Namespace

Classes: DebugHelper, Error, FCB, FileInMenu, Filter, FilterTest, HashDelegator, HashDelegatorParent, Histogram, LinkHistory, LinkState, MDoc, MarkParse, MenuBuilder, MenuFilter, OptionValue, PathUtilsTest, PromptForFilespecWithWildcardTest, SavedAsset, SavedFilesMatcher, SearchResultsReport, TestApplyOtherFilters, TestCollectUniqueNames, TestHashDelegator, TestHashDelegator0, TestHashDelegatorAppendDivider, TestHashDelegatorBlockFind, TestHashDelegatorBlockType, TestHashDelegatorBlocksFromNestedFiles, TestHashDelegatorCollectRequiredCodeLines, TestHashDelegatorCommandOrUserSelectedBlock, TestHashDelegatorCountBlockInFilename, TestHashDelegatorCreateAndWriteFile, TestHashDelegatorDetermineBlockState, TestHashDelegatorDisplayRequiredCode, TestHashDelegatorFetchColor, TestHashDelegatorFormatExecutionStreams, TestHashDelegatorFormatReferencesSendColor, TestHashDelegatorHandleBackLink, TestHashDelegatorHandleBlockState, TestHashDelegatorHandleStream, TestHashDelegatorIterBlocksFromNestedFiles, TestHashDelegatorMenuChromeColoredOption, TestHashDelegatorMenuChromeOption, TestHashDelegatorStartFencedBlock, TestHashDelegatorStringSendColor, TestHashDelegatorUpdateMenuAttribYieldSelectedWithBody, TestHashDelegatorWaitForUserSelectedBlock, TestHashDelegatorYieldToBlock, TestLinkHistory, TestMDoc, TestMDoc2, TestMDocCollectDependencies, TestMarkdownTableFormatter, TestUxBlockEvalForExport

Constant Summary collapse

APP_DESC =
'Markdown Executor'
APP_NAME =
'MDE'
BIN_NAME =
'mde'
GEM_NAME =
'markdown_exec'
TAP_DEBUG =
'MDE_DEBUG'
VERSION =
'3.5.1'

Instance Method Summary collapse

Methods included from Exceptions

error_handler, warn_format

Instance Method Details

#test_yield_line_if_selected_with_lineObject



6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
# File 'lib/hash_delegator.rb', line 6991

def test_yield_line_if_selected_with_line
  block_called = false
  HashDelegator.yield_line_if_selected('Test line',
                                       [:line]) do |type, content|
    block_called = true
    assert_equal :line, type
    assert_equal 'Test line', content.body[0]
  end
  assert block_called
end

#test_yield_line_if_selected_without_blockObject



7010
7011
7012
7013
# File 'lib/hash_delegator.rb', line 7010

def test_yield_line_if_selected_without_block
  result = HashDelegator.yield_line_if_selected('Test line', [:line])
  assert_nil result
end

#test_yield_line_if_selected_without_lineObject



7002
7003
7004
7005
7006
7007
7008
# File 'lib/hash_delegator.rb', line 7002

def test_yield_line_if_selected_without_line
  block_called = false
  HashDelegator.yield_line_if_selected('Test line', [:other]) do |_|
    block_called = true
  end
  refute block_called
end