Class: Watchcat::RenameMode
- Inherits:
-
Object
- Object
- Watchcat::RenameMode
- Defined in:
- lib/watchcat/kind.rb
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
Instance Method Summary collapse
- #both? ⇒ Boolean
- #from? ⇒ Boolean
-
#initialize(mode) ⇒ RenameMode
constructor
A new instance of RenameMode.
- #to? ⇒ Boolean
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
#mode ⇒ Object
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
204 205 206 |
# File 'lib/watchcat/kind.rb', line 204 def both? @mode == "both" end |
#from? ⇒ Boolean
196 197 198 |
# File 'lib/watchcat/kind.rb', line 196 def from? @mode == "from" end |
#to? ⇒ Boolean
200 201 202 |
# File 'lib/watchcat/kind.rb', line 200 def to? @mode == "to" end |