Class: Octodown::FileChooser::MarkdownFileList
- Inherits:
-
Object
- Object
- Octodown::FileChooser::MarkdownFileList
- Defined in:
- lib/octodown/support/file_chooser.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(logger) ⇒ MarkdownFileList
constructor
A new instance of MarkdownFileList.
- #winning_strategy ⇒ Object
Constructor Details
#initialize(logger) ⇒ MarkdownFileList
Returns a new instance of MarkdownFileList.
48 49 50 |
# File 'lib/octodown/support/file_chooser.rb', line 48 def initialize(logger) @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
46 47 48 |
# File 'lib/octodown/support/file_chooser.rb', line 46 def logger @logger end |
Instance Method Details
#call ⇒ Object
52 53 54 55 |
# File 'lib/octodown/support/file_chooser.rb', line 52 def call logger.debug("File choose strategy: #{winning_strategy.class.name}") winning_strategy.call end |