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.



184
185
186
# File 'lib/watchcat/kind.rb', line 184

def initialize(mode)
  @mode = mode
end

Instance Attribute Details

#modeObject

Returns the value of attribute mode.



182
183
184
# File 'lib/watchcat/kind.rb', line 182

def mode
  @mode
end

Instance Method Details

#both?Boolean

Returns:

  • (Boolean)


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

def both?
  @mode == "both"
end

#from?Boolean

Returns:

  • (Boolean)


188
189
190
# File 'lib/watchcat/kind.rb', line 188

def from?
  @mode == "from"
end

#to?Boolean

Returns:

  • (Boolean)


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

def to?
  @mode == "to"
end