Class: Trackler::Track::Image
- Inherits:
-
Struct
- Object
- Struct
- Trackler::Track::Image
- Defined in:
- lib/trackler/track.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
11 12 13 |
# File 'lib/trackler/track.rb', line 11 def path @path end |
Instance Method Details
#exists? ⇒ Boolean
12 13 14 |
# File 'lib/trackler/track.rb', line 12 def exists? File.exist?(path) end |
#type ⇒ Object
16 17 18 |
# File 'lib/trackler/track.rb', line 16 def type File.extname(path).sub('.', '').to_sym end |