Class: Trackler::Track::Image

Inherits:
Struct
  • Object
show all
Defined in:
lib/trackler/track.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



13
14
15
# File 'lib/trackler/track.rb', line 13

def path
  @path
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/trackler/track.rb', line 14

def exists?
  File.exist?(path)
end

#typeObject



18
19
20
# File 'lib/trackler/track.rb', line 18

def type
  File.extname(path).sub('.', '').to_sym
end