class GetAddic7ed::VideoFile

Attributes

filename[R]
filepath[R]

Public Class Methods

new(file) click to toggle source
# File lib/addic7ed/videofile.rb, line 5
def initialize(file)
  @filepath = File.expand_path(file)
  @filename = File.basename(@filepath)
end

Public Instance Methods

inspect() click to toggle source
# File lib/addic7ed/videofile.rb, line 10
def inspect
  puts "Filename".ljust(10) + ": #{@filename}"
  puts "Filepath".ljust(10) + ": #{@filepath}"
end