Class: WebFile

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

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ WebFile

Returns a new instance of WebFile.



23
24
25
# File 'lib/files.rb', line 23

def initialize(type)
  @type = type
end

Instance Method Details

#erubyObject



33
34
35
# File 'lib/files.rb', line 33

def eruby
  @type
end

#path(settings) ⇒ Object



27
28
29
30
31
# File 'lib/files.rb', line 27

def path(settings)
  path_split = "CPNYCJK.src.main.webapp.WebContent".split(".")
  path_split.push(@type, *(settings[:package].split(".")))
  File.join(*path_split, "#{settings[:name]}.#{@type}")
end