Class: EverExp::Files
- Inherits:
-
Object
- Object
- EverExp::Files
- Includes:
- Enumerable
- Defined in:
- lib/ever_exp/files.rb
Defined Under Namespace
Classes: FileInFiles
Instance Attribute Summary collapse
-
#note ⇒ Object
Returns the value of attribute note.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(path) ⇒ Files
constructor
A new instance of Files.
- #isHtml? ⇒ Boolean
- #name ⇒ Object
Constructor Details
#initialize(path) ⇒ Files
Returns a new instance of Files.
8 9 10 |
# File 'lib/ever_exp/files.rb', line 8 def initialize path @path = path end |
Instance Attribute Details
#note ⇒ Object
Returns the value of attribute note.
4 5 6 |
# File 'lib/ever_exp/files.rb', line 4 def note @note end |
Instance Method Details
#each(&block) ⇒ Object
16 17 18 |
# File 'lib/ever_exp/files.rb', line 16 def each &block _files.each &block end |
#isHtml? ⇒ Boolean
20 21 22 |
# File 'lib/ever_exp/files.rb', line 20 def isHtml? false end |
#name ⇒ Object
12 13 14 |
# File 'lib/ever_exp/files.rb', line 12 def name File.basename(@path).gsub(/_files$/, '') end |