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.



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

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

Instance Attribute Details

#access_modeObject

Returns the value of attribute access_mode.



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

def access_mode
  @access_mode
end

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

Instance Method Details

#close?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/watchcat/kind.rb', line 58

def close?
  @kind == "close"
end

#open?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/watchcat/kind.rb', line 54

def open?
  @kind == "open"
end

#read?Boolean

Returns:

  • (Boolean)


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

def read?
  @kind == "read"
end