Class: Watchcat::AccessKind
- Inherits:
-
Object
- Object
- Watchcat::AccessKind
- Extended by:
- Forwardable
- Defined in:
- lib/watchcat/kind.rb
Instance Attribute Summary collapse
-
#access_mode ⇒ Object
Returns the value of attribute access_mode.
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
- #close? ⇒ Boolean
-
#initialize ⇒ AccessKind
constructor
A new instance of AccessKind.
- #open? ⇒ Boolean
- #read? ⇒ Boolean
Constructor Details
#initialize ⇒ AccessKind
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_mode ⇒ Object
Returns the value of attribute access_mode.
35 36 37 |
# File 'lib/watchcat/kind.rb', line 35 def access_mode @access_mode end |
#kind ⇒ Object
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
50 51 52 |
# File 'lib/watchcat/kind.rb', line 50 def close? @kind == "close" end |
#open? ⇒ Boolean
46 47 48 |
# File 'lib/watchcat/kind.rb', line 46 def open? @kind == "open" end |
#read? ⇒ Boolean
42 43 44 |
# File 'lib/watchcat/kind.rb', line 42 def read? @kind == "read" end |