module Ahnnotate::Command
Public Class Methods
included(other)
click to toggle source
# File lib/ahnnotate/command.rb, line 3 def self.included(other) other.class_eval do attr_writer :vfs end end
new(root, options, config)
click to toggle source
# File lib/ahnnotate/command.rb, line 9 def initialize(root, options, config) @root = root @options = options @config = config end
Public Instance Methods
vfs()
click to toggle source
# File lib/ahnnotate/command.rb, line 15 def vfs @vfs ||= Vfs.new(vfs_driver) end
Private Instance Methods
vfs_driver()
click to toggle source
# File lib/ahnnotate/command.rb, line 21 def vfs_driver if @options.fix? VfsDriver::Filesystem.new(root: @root) else VfsDriver::ReadOnlyFilesystem.new(root: @root) end end