Class: MarkdownExplorer::Files

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_explorer/files.rb

Constant Summary collapse

EXTENSIONS =
%w(md mdown markdown)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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_aObject



13
14
15
# File 'lib/markdown_explorer/files.rb', line 13

def to_a
  @collection
end