Class: VixenRename::Client
- Inherits:
-
Object
- Object
- VixenRename::Client
- Includes:
- Util
- Defined in:
- lib/vixen_rename/client.rb
Overview
Top Level Client
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(location, **opts) ⇒ Client
constructor
A new instance of Client.
Methods included from Util
Constructor Details
#initialize(location, **opts) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 |
# File 'lib/vixen_rename/client.rb', line 8 def initialize(location, **opts) @location = location @net = Net.new @verbose = opts[:commit] != true end |
Instance Method Details
#convert ⇒ Object
14 15 16 17 18 |
# File 'lib/vixen_rename/client.rb', line 14 def convert convert_file if File.file? @location convert_files_in_dir if File.directory? @location end |