Class: Watchcat::AnyKind

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kindObject

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

Returns:

  • (Boolean)


107
108
109
# File 'lib/watchcat/kind.rb', line 107

def file?
  @kind == "file"
end

#folder?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/watchcat/kind.rb', line 111

def folder?
  @kind == "folder"
end