Class: MarkdownExplorer::Files
- Inherits:
-
Object
- Object
- MarkdownExplorer::Files
- Defined in:
- lib/markdown_explorer/files.rb
Constant Summary collapse
- EXTENSIONS =
%w(md mdown markdown)
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Files
constructor
A new instance of Files.
- #to_a ⇒ Object
Constructor Details
#initialize(path) ⇒ Files
Returns a new instance of Files.
8 9 10 11 |
# File 'lib/markdown_explorer/files.rb', line 8 def initialize(path) @path = path find_files end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/markdown_explorer/files.rb', line 6 def path @path end |
Instance Method Details
#to_a ⇒ Object
13 14 15 |
# File 'lib/markdown_explorer/files.rb', line 13 def to_a @collection end |