class OCR::Path
Constants
- EXTENS
Public Class Methods
new(input_file)
click to toggle source
Initialize your Input File.
@params [String] path to input file.
# File lib/simple-ocr/path.rb, line 9 def initialize(input_file) @input_file = input_file end
Public Instance Methods
clean_image_path()
click to toggle source
duplicate_path()
click to toggle source
Duplicate the input file path
@return [String] input file path
# File lib/simple-ocr/path.rb, line 23 def duplicate_path @input_file.dup end
get_filename()
click to toggle source
Get the FileName
@return [String] Filename
# File lib/simple-ocr/path.rb, line 48 def get_filename File.basename(@input_file) end
image_path()
click to toggle source
name_exten()
click to toggle source
Split the Realname
@return [Array] name and extension
# File lib/simple-ocr/path.rb, line 16 def name_exten File.basename(@input_file).split(".") end