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.
113 114 115 |
# File 'lib/watchcat/kind.rb', line 113 def kind @kind end |
Instance Method Details
#file? ⇒ Boolean
115 116 117 |
# File 'lib/watchcat/kind.rb', line 115 def file? @kind == "file" end |
#folder? ⇒ Boolean
119 120 121 |
# File 'lib/watchcat/kind.rb', line 119 def folder? @kind == "folder" end |