Class: Watchcat::AnyKind
- Inherits:
-
Object
- Object
- Watchcat::AnyKind
- Defined in:
- lib/watchcat/kind.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
105 106 107 |
# File 'lib/watchcat/kind.rb', line 105 def kind @kind end |
Instance Method Details
#file? ⇒ Boolean
107 108 109 |
# File 'lib/watchcat/kind.rb', line 107 def file? @kind == "file" end |
#folder? ⇒ Boolean
111 112 113 |
# File 'lib/watchcat/kind.rb', line 111 def folder? @kind == "folder" end |