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.



56
57
58
# File 'lib/watchcat/kind.rb', line 56

def kind
  @kind
end

Instance Method Details

#file?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/watchcat/kind.rb', line 58

def file?
  @kind == "file"
end

#folder?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/watchcat/kind.rb', line 62

def folder?
  @kind == "folder"
end