Class: VixenRename::Client

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/vixen_rename/client.rb

Overview

Top Level Client

Instance Method Summary collapse

Methods included from Util

#rename

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

#convertObject



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