mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
8 lines
No EOL
156 B
Ruby
8 lines
No EOL
156 B
Ruby
class SiteFile
|
|
attr_reader :filename, :ext
|
|
|
|
def initialize(filename)
|
|
@filename = filename
|
|
@ext = File.extname(@filename).sub(/^./, '')
|
|
end
|
|
end |