mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
399 B
22 lines
399 B
module Docs
|
|
class NullStore < AbstractStore
|
|
def initialize
|
|
super '/'
|
|
end
|
|
|
|
private
|
|
|
|
def nil(*args)
|
|
nil
|
|
end
|
|
|
|
alias_method :read_file, :nil
|
|
alias_method :create_file, :nil
|
|
alias_method :update_file, :nil
|
|
alias_method :delete_file, :nil
|
|
alias_method :file_exist?, :nil
|
|
alias_method :file_mtime, :nil
|
|
alias_method :list_files, :nil
|
|
end
|
|
end
|