Class: Rednode::Bindings::Fs::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/rednode/bindings/fs.rb

Instance Method Summary collapse

Constructor Details

#initialize(stat) ⇒ Stats

Returns a new instance of Stats.



143
144
145
# File 'lib/rednode/bindings/fs.rb', line 143

def initialize(stat)
  @stat = stat
end

Instance Method Details

#devObject



167
168
169
# File 'lib/rednode/bindings/fs.rb', line 167

def dev
  @stat.dev
end

#inoObject



171
172
173
# File 'lib/rednode/bindings/fs.rb', line 171

def ino
  @stat.ino
end

#isDirectory(*a) ⇒ Object



163
164
165
# File 'lib/rednode/bindings/fs.rb', line 163

def isDirectory(*a)
  @stat.directory?
end


159
160
161
# File 'lib/rednode/bindings/fs.rb', line 159

def isSymbolicLink(*a)
  @stat.symlink?
end

#modeObject



155
156
157
# File 'lib/rednode/bindings/fs.rb', line 155

def mode
  @stat.mode
end

#mtimeObject



151
152
153
# File 'lib/rednode/bindings/fs.rb', line 151

def mtime
  @stat.mtime
end

#sizeObject



147
148
149
# File 'lib/rednode/bindings/fs.rb', line 147

def size
  @stat.size
end