Class: WebFile
- Inherits:
-
Object
- Object
- WebFile
- Defined in:
- lib/files.rb
Instance Method Summary collapse
- #eruby ⇒ Object
-
#initialize(type) ⇒ WebFile
constructor
A new instance of WebFile.
- #path(settings) ⇒ Object
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
#eruby ⇒ Object
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 |