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.
184 185 186 |
# File 'lib/watchcat/kind.rb', line 184 def initialize(mode) @mode = mode end |
Instance Attribute Details
#mode ⇒ Object
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
196 197 198 |
# File 'lib/watchcat/kind.rb', line 196 def both? @mode == "both" end |
#from? ⇒ Boolean
188 189 190 |
# File 'lib/watchcat/kind.rb', line 188 def from? @mode == "from" end |
#to? ⇒ Boolean
192 193 194 |
# File 'lib/watchcat/kind.rb', line 192 def to? @mode == "to" end |