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



50
51
52
# File 'lib/filewatch/bootstrap.rb', line 50

def inode
  @inode
end

#majObject

Returns the value of attribute maj

Returns:

  • (Object)

    the current value of maj



50
51
52
# File 'lib/filewatch/bootstrap.rb', line 50

def maj
  @maj
end

#minObject

Returns the value of attribute min

Returns:

  • (Object)

    the current value of min



50
51
52
# File 'lib/filewatch/bootstrap.rb', line 50

def min
  @min
end

Instance Method Details

#to_sObject



51
52
53
# File 'lib/filewatch/bootstrap.rb', line 51

def to_s
  to_a.join(" ")
end