class SyntaxTree::CLI::FileItem
An item of work that corresponds to a file to be processed.
def handler
def handler HANDLERS[File.extname(filepath)] end
def initialize(filepath)
def initialize(filepath) @filepath = filepath end
def source
def source handler.read(filepath) end
def writable?
def writable? File.writable?(filepath) end