Method: MiscFile#initialize
- Defined in:
- lib/zarchitect/misc_file.rb
#initialize(path) ⇒ MiscFile
Returns a new instance of MiscFile.
4 5 6 7 8 9 10 |
# File 'lib/zarchitect/misc_file.rb', line 4 def initialize(path) @path = path @url = path.clone @url[0] = "/" @size = File.size(path) @type = File.extname(path)[1..-1] end |