Sha256: 08035682b23ed3ee34e1c1cbda0a0eb70e275e109654ed890ac26a140602c32d
Contents?: true
Size: 355 Bytes
Versions: 3
Compression:
Stored size: 355 Bytes
Contents
# encoding: utf-8 module Bunch class File attr_reader :path, :content, :filename, :extension def initialize(path, content) @path = path @content = content @filename = ::File.basename(@path) @extension = ::File.extname(@filename) end def accept(visitor) visitor.visit_file(self) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bunch-1.0.0pre3 | lib/bunch/file.rb |
bunch-1.0.0pre2 | lib/bunch/file.rb |
bunch-1.0.0pre1 | lib/bunch/file.rb |