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
13 14 15 |
# File 'lib/trackler/track.rb', line 13 def path @path end |
Instance Method Details
#exists? ⇒ Boolean
14 15 16 |
# File 'lib/trackler/track.rb', line 14 def exists? File.exist?(path) end |
#type ⇒ Object
18 19 20 |
# File 'lib/trackler/track.rb', line 18 def type File.extname(path).sub('.', '').to_sym end |