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.



113
114
115
# File 'lib/watchcat/kind.rb', line 113

def kind
  @kind
end

Instance Method Details

#file?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/watchcat/kind.rb', line 115

def file?
  @kind == "file"
end

#folder?Boolean

Returns:

  • (Boolean)


119
120
121
# File 'lib/watchcat/kind.rb', line 119

def folder?
  @kind == "folder"
end