Class: DuperVisor::Detector
- Inherits:
-
Object
- Object
- DuperVisor::Detector
- Defined in:
- lib/dupervisor/detector.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize(filename) ⇒ Detector
constructor
A new instance of Detector.
Constructor Details
#initialize(filename) ⇒ Detector
Returns a new instance of Detector.
4 5 6 |
# File 'lib/dupervisor/detector.rb', line 4 def initialize(filename) self.filename = filename end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
3 4 5 |
# File 'lib/dupervisor/detector.rb', line 3 def filename @filename end |
Instance Method Details
#detect ⇒ Object
8 9 10 |
# File 'lib/dupervisor/detector.rb', line 8 def detect format_from_extension(filename) if filename.is_a?(String) end |