class Node::NodeFilesystem

Attributes

node[R]

Public Class Methods

new(node, overlays: false) click to toggle source
# File app/node/filesystem.rb, line 2
def initialize node, overlays: false
  @node = node
  @underlying = overlays
  @files = {}
end

Public Instance Methods

[](path) click to toggle source
# File app/node/filesystem.rb, line 10
def [] path
  if @underlying
    @files[path] || @underlying[path]
  else
    @files[path] ||= RBCM::Node::NodeFile.new path: path, filesystem: self
  end
end