Class: Watchcat::AccessKind

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/watchcat/kind.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAccessKind

Returns a new instance of AccessKind.



38
39
40
# File 'lib/watchcat/kind.rb', line 38

def initialize
  @kind, @access_mode = nil, nil
end

Instance Attribute Details

#access_modeObject

Returns the value of attribute access_mode.



35
36
37
# File 'lib/watchcat/kind.rb', line 35

def access_mode
  @access_mode
end

#kindObject

Returns the value of attribute kind.



35
36
37
# File 'lib/watchcat/kind.rb', line 35

def kind
  @kind
end

Instance Method Details

#close?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/watchcat/kind.rb', line 50

def close?
  @kind == "close"
end

#open?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/watchcat/kind.rb', line 46

def open?
  @kind == "open"
end

#read?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/watchcat/kind.rb', line 42

def read?
  @kind == "read"
end