Class: FileWatch::InodeStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/filewatch/bootstrap.rb

Overview

Structs can be used as hash keys because they compare by value this is used as the key for values in the sincedb hash

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inodeObject

Returns the value of attribute inode

Returns:

  • (Object)

    the current value of inode



38
39
40
# File 'lib/filewatch/bootstrap.rb', line 38

def inode
  @inode
end

#majObject

Returns the value of attribute maj

Returns:

  • (Object)

    the current value of maj



38
39
40
# File 'lib/filewatch/bootstrap.rb', line 38

def maj
  @maj
end

#minObject

Returns the value of attribute min

Returns:

  • (Object)

    the current value of min



38
39
40
# File 'lib/filewatch/bootstrap.rb', line 38

def min
  @min
end

Instance Method Details

#to_sObject



39
40
41
# File 'lib/filewatch/bootstrap.rb', line 39

def to_s
  to_a.join(" ")
end