class MarkdownExplorer::Files
Constants
- EXTENSIONS
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/markdown_explorer/files.rb, line 8 def initialize(path) @path = path find_files end
Public Instance Methods
to_a()
click to toggle source
# File lib/markdown_explorer/files.rb, line 13 def to_a @collection end
Private Instance Methods
extensions()
click to toggle source
# File lib/markdown_explorer/files.rb, line 27 def extensions EXTENSIONS.join(",") end
find_files()
click to toggle source
# File lib/markdown_explorer/files.rb, line 19 def find_files @collection = Dir[search_string] end
search_string()
click to toggle source
# File lib/markdown_explorer/files.rb, line 23 def search_string File.join(path, "**", "*.{#{extensions}}") end