Class: Watchcat::CreateKind

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.



64
65
66
# File 'lib/watchcat/kind.rb', line 64

def kind
  @kind
end

Instance Method Details

#file?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/watchcat/kind.rb', line 66

def file?
  @kind == "file"
end

#folder?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/watchcat/kind.rb', line 70

def folder?
  @kind == "folder"
end