Class: Wardite::Wasi::PreopenedDir

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite/wasi/preopens.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, guest_path, fd) ⇒ PreopenedDir

Returns a new instance of PreopenedDir.



10
11
12
13
14
# File 'lib/wardite/wasi/preopens.rb', line 10

def initialize(path, guest_path, fd)
  @path = path
  @guest_path = guest_path
  @fd = fd
end

Instance Attribute Details

#fdObject (readonly)

: Integer



8
9
10
# File 'lib/wardite/wasi/preopens.rb', line 8

def fd
  @fd
end

#guest_pathObject (readonly)

: String



7
8
9
# File 'lib/wardite/wasi/preopens.rb', line 7

def guest_path
  @guest_path
end

#pathObject (readonly)

: String



6
7
8
# File 'lib/wardite/wasi/preopens.rb', line 6

def path
  @path
end