Class: Watchcat::RenameMode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode) ⇒ RenameMode

Returns a new instance of RenameMode.



192
193
194
# File 'lib/watchcat/kind.rb', line 192

def initialize(mode)
  @mode = mode
end

Instance Attribute Details

#modeObject

Returns the value of attribute mode.



190
191
192
# File 'lib/watchcat/kind.rb', line 190

def mode
  @mode
end

Instance Method Details

#both?Boolean

Returns:

  • (Boolean)


204
205
206
# File 'lib/watchcat/kind.rb', line 204

def both?
  @mode == "both"
end

#from?Boolean

Returns:

  • (Boolean)


196
197
198
# File 'lib/watchcat/kind.rb', line 196

def from?
  @mode == "from"
end

#to?Boolean

Returns:

  • (Boolean)


200
201
202
# File 'lib/watchcat/kind.rb', line 200

def to?
  @mode == "to"
end