Class: Trax::Core::FS::Files
- Includes:
- Enumerable, Scopes
- Defined in:
- lib/trax/core/fs.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(*args) ⇒ Files
constructor
A new instance of Files.
Methods included from Scopes
Methods included from Enumerable
Constructor Details
#initialize(*args) ⇒ Files
Returns a new instance of Files.
39 40 41 |
# File 'lib/trax/core/fs.rb', line 39 def initialize(*args) @files = (args || []).flatten.compact.uniq end |
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
37 38 39 |
# File 'lib/trax/core/fs.rb', line 37 def files @files end |