class SyntaxTree::CLI::FileItem
An item of work that corresponds to a file to be processed.
Attributes
Public Class Methods
Source
# File lib/syntax_tree/cli.rb, line 44 def initialize(filepath) @filepath = filepath end
Public Instance Methods
Source
# File lib/syntax_tree/cli.rb, line 48 def handler HANDLERS[File.extname(filepath)] end
Source
# File lib/syntax_tree/cli.rb, line 56 def writable? File.writable?(filepath) end