Class: AriFetch::Files
- Inherits:
-
Object
- Object
- AriFetch::Files
- Defined in:
- lib/ari_fetch/files.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
- #filtered_files_in_order(reverse) ⇒ Object
-
#initialize(files = []) ⇒ Files
constructor
A new instance of Files.
Constructor Details
#initialize(files = []) ⇒ Files
Returns a new instance of Files.
6 7 8 |
# File 'lib/ari_fetch/files.rb', line 6 def initialize(files = []) @files = files end |
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
4 5 6 |
# File 'lib/ari_fetch/files.rb', line 4 def files @files end |
Instance Method Details
#filtered_files_in_order(reverse) ⇒ Object
10 11 12 13 14 |
# File 'lib/ari_fetch/files.rb', line 10 def filtered_files_in_order(reverse) filter! sort!(reverse) @files end |