Class: EverExp::Files

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/ever_exp/files.rb

Defined Under Namespace

Classes: FileInFiles

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#noteObject

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

Returns:

  • (Boolean)


20
21
22
# File 'lib/ever_exp/files.rb', line 20

def isHtml?
  false
end

#nameObject



12
13
14
# File 'lib/ever_exp/files.rb', line 12

def name
  File.basename(@path).gsub(/_files$/, '')
end