Module: MockFS::MockFileSystem::Node

Included in:
MockDir, MockFile
Defined in:
lib/mockfs.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mtimeObject

Returns the value of attribute mtime.



413
414
415
# File 'lib/mockfs.rb', line 413

def mtime
  @mtime
end

#nameObject

Returns the value of attribute name.



413
414
415
# File 'lib/mockfs.rb', line 413

def name
  @name
end

#parentObject

Returns the value of attribute parent.



413
414
415
# File 'lib/mockfs.rb', line 413

def parent
  @parent
end

#permissionsObject

Returns the value of attribute permissions.



413
414
415
# File 'lib/mockfs.rb', line 413

def permissions
  @permissions
end

Instance Method Details

#readable?Boolean

Returns:

  • (Boolean)


415
416
417
# File 'lib/mockfs.rb', line 415

def readable?
	!permissions or permissions[0] != 0
end